Statistics: Posted by Jason Caldwell — May 24th, 2011, 7:30 pm
Statistics: Posted by sugeneris — May 24th, 2011, 12:53 pm
  _gaq.push(['_addItem',
    '%%subscr_id%%',           // order ID - required
    '%%item_number%%',           // SKU/code - required
    'Jason's Item',        // product name ( FAIL )
    '',   // category or variation
    '%%initial%%',          // unit price - required
    '1'               // quantity - required
  ]);Statistics: Posted by Jason Caldwell — May 23rd, 2011, 6:36 pm
<script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-XXXXXXX-1']);
    _gaq.push(['_setDomainName', '.example.com']);
    _gaq.push(['_trackPageview']);
    _gaq.push(['_addTrans',
       '%%subscr_id%%',           // order ID - required
       'Client Site Name', // affiliation or store name
       '%%initial%%',          // total - required
       '',           // tax
       '',              // shipping
       '',       // city
       '',     // state or province
       ''             // country
    ]);
   // add item might be called for every item in the shopping cart
  _gaq.push(['_addItem',
    '%%subscr_id%%',           // order ID - required
    '%%item_number%%',           // SKU/code - required
    '%%item_name%%',        // product name
    '',   // category or variation
    '%%initial%%',          // unit price - required
    '1'               // quantity - required
  ]);
  _gaq.push(['_trackTrans']); //submits transaction to the Analytics servers
    (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>
Statistics: Posted by sugeneris — May 20th, 2011, 6:34 am