Tracking custom event with Google Analytics by Yoast Plugin for WordPress

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])

Read More

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.

Related posts

1 comment

Comments are closed.