HeidiHoe wrote: ↑June 15th, 2019, 4:30 pmDon't know what the percentage is but I do know you can get stats on how many use ad blockers in your Google Analytics, or if you're overly inspired write them to a database.
Here is code to track events to add to Google Analytics tag (inside the <script> tags) when using my freebie plugins:
Use with Ad-Blocker RestrictUse with Ad-Blocker AlertCode: Select all
if(!document.getElementById('VbatOlNCpWPT')){ gtag('event', 'blocking_ads', { 'event_label': 'Blocking Ads', 'event_category': 'blocking_ads', 'non_interaction': true });}Code: Select all
if(!document.getElementById('zjaIKtlLcRpd')){ gtag('event', 'blocking_ads', { 'event_label': 'Blocking Ads', 'event_category': 'blocking_ads', 'non_interaction': true });}
thanks for this heidi.
great post

