Ad Block detection¶
Wiry.io Analytics automatically detects whether the visitor is using ad-blocking software.
How it works¶
- The script tries to load an external script from
- Adblocking software usually performs a check on the script‘s name and parameters to determine, whether this is script serves ads;
- If the external script is being blocked from loading, it means the visitor is using adblocking software.
The external script itself is completely harmless, it only contains one line of code:
/** * Ad Block detection script */ window.__wiry_ad_block__ = false;
If you see
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT in the console, everything is fine, it only means you‘re using adblocking software and the detection was successful.