- OptimizeSmart Newsletter
- Posts
- How Developers Prevent GTM Scripts from Ad Blockers
How Developers Prevent GTM Scripts from Ad Blockers
๐งจ ๐คฏ I am not a web developer. So, I asked seasoned developers how they are currently stopping ad blockers from identifying and blocking GTM container scripts. I summarised their findings in a 6 steps approach to dealing with this issue. ๐
โ
In case you are unaware, Adblockers like 'Ghostery' employ not one but multiple sophisticated mechanisms to identify and block tracking scripts like GTM container code.
Blocking the client-side GTM script makes even the GTM server-side tagging pretty much useless.
And since millions of people use adblockers, most of the time, your tracking does not work whether or not a user consents to tracking.