Adding Google Analytics Tracking Event To Buttons

Hi again,

I'm trying to add some event tracking code to the button shortcodes but it doesn't seem to be working.

"onclick" in the shortcode is different than the "onClick" that Google Analytics is asking for, I guess:

onClick="ga(‘send’, 'Button Clicks', 'Call Buttons', ‘Clicks’);"

I can try using Google Tag Manager but I was hoping to avoid it for this particular task.

Thanks for any help.

Comments

Sign In or Register to comment.