flushAllTracking method
void
flushAllTracking(
- String visitorId
)
override
Implementation
@override
flushAllTracking(String visitorId) {
// Retreive the ids (hits) and clean hit pool (keep the consent tracking)
var listIdsToRemove = this._fsHitPool.flushTrackAndKeepConsent(visitorId);
// Retreive the ids (activate) and clean activate pool
listIdsToRemove.addAll(this._activatePool.flushAllTrackFromQueue());
// Based on those ids will remove them from database
if (listIdsToRemove.isNotEmpty) {
this.fsCacheHit?.flushHits(listIdsToRemove);
}
}