Home>Support>Cta tracking using google analytics

Cta tracking using google analytics

Hi,

I’m loving the page builder plugin. You guys have seriously saved me hours – thanks so much.

I’m having an issue with the CTA widget from the widgets bundle.

I have entered my tracking code in the onclick box within the CTA Widget like this;

 _gaq.push(['_trackEvent', 'downloads', 'topButtonClick','Cook Once eBook']); 

however, when you look at the code created on in the HTML, it actually reads like this;

_gaq.push(['_trackEvent', 'downloads', 'topButtonClick','Cook Once eBook']);"

Can you help?

URL: http://www.keepingupwiththeholsbys.com/cook-once-offer/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 3 months ago Kevin Morrell

    hi, just seen the it’s turning my code back into HTML!!

    the code looks like this;

    _gaq.push(['_trackEvent', 'downloads', 'topButtonClick','Cook Once eBook']);

  2. 9 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Hi Kevin

    Hopefully you’ve made progress on this.

    I’m not seeing a difference in the code you’ve posted. Could you perhaps explain where the difference is?

    This is how it renders in my local testing:

    <a class="ow-button-hover" href="http://google.com" onclick=" _gaq.push(['_trackEvent', 'downloads', 'topButtonClick','Cook Once eBook']); ">
    
Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More