sendHit method

  1. @override
Future<void> sendHit(
  1. BaseHit hit
)
override

Implementation

@override
Future<void> sendHit(BaseHit hit) async {
  // set visitorId for hit
  hit.visitorId = visitor.visitorId;
  // set anonymousId for hit
  hit.anonymousId = visitor.anonymousId;
  hit.createdAt = DateTime.now();
  getStrategy().sendHit(hit);
}