Hey guys can anyone help me out about how to do custom even tracking while using Yoast Analytics plugin? I’m adding custom code via jquery depending on adblcoking enabled like this
_gaq.push(['_trackEvent', 'Adblock', 'Blocked', 'false',,true])
but it didn’t worked and showed me _gaq.push
not defined. Now as I have enabled Universal Tracking within the plugin and read a lot on google I also tried the following:
__gaTracker('send', 'event', 'Adblock', 'Blocked');
Guess what, it didn’t worked either. I tried to contact the plugin dev, no answer from there too. So, I’m hoping if someone has tried this before be and get succeeded, might help me out on this.
Here are the screenshot of my Yoast Analytics Plugin Settings page if you need it to help me out.
This is my universal tab – http://puu.sh/kzLnj/570ba6e165.png
This is my advanced tab – http://puu.sh/kzLqr/205239bdfd.png
Can anybody truly help me out on this?
P.S.: I’ve also tried the following:
ga('send', 'event', 'Adblock', 'Blocked');
It didn’t worked either.
Instead of:
use:
Here is more info: https://wordpress.org/support/topic/note-change-of-global-function-ga-_gatracker