Change UA-XXXXXX-Y
to your own property id.
- Define the Adblock variable
_adblock
totrue
- Include the Adblock variable set to
false
in one of you advertising script files. This file will be blocked by Adblock. - The function chooses different GA solutions depending on if Adblocker is installed or not.
Note 1: To load an extra asset just to set the variable to false may be uneccecery.
Note 2: This will also send custom events to GA