Tagged: Analytics, enfold, LayerSlider
Hi there,
I have a LayerSlider on the home page and would like to track clicks on it. I tried using a layer with the following html but no luck:
<a href="http://mywebsite.com/page/" onClick="_gaq.push(['_trackEvent', 'Banner', 'Click', 'BSO','1']);" style="color:#fff;">Book Now</a>
I searched through other threads and while I found an identical one, the images were missing and therefor not helpful.
Thank you for your help.
Hey bmccumber!
I think that should be working. Are you sure you placed it inside the HTML tab instead of the Text tab? Send us a link to your page and we’ll take a look.
Regards,
Elliott
100% sure. The page is albertabcsafety.com
Hey!
I can’t see anything wrong with the code itself, is it still not tracking?
Best regards,
Rikard
Still not working
Hi!
I see a “gaq” is undefined error. Are you sure you have analytics setup in the theme options?
Best regards,
Elliott
I was playing around with it earlier. Is the error still there? Where can I see it?
Hey!
I recommend using Firebug add-on for Firefox.
I see you have a google analytics plugin installed. Go ahead and deactivate that and try filling out the analytics information in Dashboard > Enfold > Theme Options.
Regards,
Elliott