We want to implement a logic where, if we are 100% certain that a user is a Bot or there is a major other issue (eg some endless loop that keeps firing data layer event), no more logic should run in Piwik Pro Tag Manager nor in Piwik Pro Analytics tags.
Adobe Analytics has this s.abort = true, Tealium has the noload flag (Settings | Tealium for JavaScript (utag.js) | Tealium Docs) you can set in such a case.
What options do I have with PP Tag Manager and PP Analytics?
I tried:
window.dataLayer = []; // still fires the built-in PP Analytics Events (pings, heatmap etc.) still fire
window._paq = []; // does not kill some of the built-in PP Analytics Events (pings)
delete sevenTag; // causes an endless flow of errors
I would add some condition to a trigger of Piwik tracker tag (I use a cookie), set it, and force reload in the given scenarios. I checked if there is no “Delete” method on the tracker object but I don’t see any. Also tried this “delete” on ‘Piwik’ symbol through console but that didn’t do
Hi Lukas,
There isn’t a dedicated functionality to completely stop tracking for a specific visitor. I’d say that conditional loading of the tracking code (Piwik PRO tag) and tags could work in some cases, but probably won’t cover all of them (depends on when the verification would happen). Another method, which requires more technical knowledge, would be to use setCustomRequestProcessing() to modify the request before it’s sent (here you can find information about all query parameters, in your case the important one would be “rec”).
Thanks Sara, maybe this can be used to send data to a fake Site ID in such a case.