Skip to content

Ad Block detection

Wiry.io Analytics automatically detects whether the visitor is using ad-blocking software.

How it works

  1. The script tries to load an external script from https://gateway.wiryio.com/static/script/ads.js?track=1&ad_slot=main&adzone=3;
  2. Adblocking software usually performs a check on the script‘s name and parameters to determine, whether this is script serves ads;
  3. 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;

Tip

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.