flushTrackAndKeepConsent method
Implementation
List<String> flushTrackAndKeepConsent(String visitorId) {
List<String> ret = [];
Flagship.logger(Level.DEBUG,
"Remove visitorId's hits from the pool excpet the consent tracking");
fsQueue.removeWhere((element) {
if (element.visitorId == visitorId &&
element.type != HitCategory.CONSENT) {
ret.add(element.id);
return true;
}
return false;
});
return ret;
}