vendredi 9 octobre 2015

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

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://ift.tt/1G2diEf

This is my advanced tab - http://ift.tt/1Mi8tn2

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.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire