I'm trying to add Google event tracking to the Nectar buttons on my site. However for some reason the events are not tracking. Have I set it up correctly? Here's the Shortcode I'm trying to use:
The advise still holds true. You cant add the onclick event directly using the shortcode and would need to paste in the relevant HTML Code in a RAW HTML Text Block Element. Like Below . See screenshot: http://prntscr.com/aivqvs
Hey,
I'm trying to add Google event tracking to the Nectar buttons on my site. However for some reason the events are not tracking. Have I set it up correctly? Here's the Shortcode I'm trying to use:
[button open_new_tab="true" color="extra-color-2" hover_text_color_override="#fff" size="medium" url="#2" onClick=”ga(‘send’, ‘event’, ‘ ADWRDSHeader’, ‘Click’);” text="Book Free Consult " color_override=""]
All I could find in terms of support was the below ticket from 2013:
https://themenectar.ticksy.com/ticket/128024
Is this advice still valid?
Thanks in Advance!
Hey ,
The advise still holds true. You cant add the onclick event directly using the shortcode and would need to paste in the relevant HTML Code in a RAW HTML Text Block Element. Like Below . See screenshot: http://prntscr.com/aivqvs
Best.
ThemeNectar Support Team