Whats wrong with my e-commerce tracking code?

Discussion in 'Google Analytics' started by erdistfroh, May 18, 2012.

  1. #1
    Hi,
    I'm trying to set up e-commerce tracking for a membership site. I use some variables on the thank you but transactions are not showing up in Google Analytics (waited for 36h):

    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-XXXXXX-XX']);
      _gaq.push(['_addTrans',1,6,5.00,Member,pack_id_6]);
      _gaq.push(['_addItem',1,6,5.00,Member,pack_id_6]);
      _gaq.push(['_trackTrans']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>
    Code (markup):
    Anbody knows how I can make this work?

    Kind regards

    PS. I removed my analytics ID so that is not the problem
     
    erdistfroh, May 18, 2012 IP