Viewing 6 replies - 1 through 6 (of 6 total)
  • Sorry I didn’t see this earlier.

    As long as you have a ‘ga’ object created in the head code then it should work…

    You would really have to debug the Javascript to see if the GA event is fired after checkout. If so, maybe there is something wrong in Google Analytics (e.g. ecommerce not properly enabled, although I know you said it is). If not, then maybe something is conflicting with the plugin.

    I hope this helps.

    Thanks,

    Dan

    Thread Starter WPMonty

    (@wpmonty)

    The code I added is this:

    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    
      ga('create', 'XXXXXXXX', 'auto');
      ga('send', 'pageview');
    
    </script>

    Is this the ‘ga’ object?

    If that code is working correctly then it looks like it should produce a ‘ga’ object.

    Are there any Javascript errors showing in the Developer Tools console (e.g. in Chrome)?

    Let me know the URL to your site if you like.

    Dan

    If that code is working correctly then it looks like it should produce a ‘ga’ object.

    Are there any Javascript errors showing in the Developer Tools console (e.g. in Chrome)?

    Let me know the URL to your site if you like.

    Dan

    Thread Starter WPMonty

    (@wpmonty)

    No related console errors, the site is 99 Robots

    Ah, sorry, thinking about it I can’t really test it without buying a product… I’m too cheap for that, sorry!

    If you have a test site, feel free to send me details.

    Or you could send me the HTML of the checkout page so I can see if there’s anything obvious.

    Email is probably easiest: [email protected]

    Thanks,

    Dan

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not sure if it's working?’ is closed to new replies.