alooi14 / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 1 forks source link

We are getting any transactions in the Google Analytics Control Panel #633

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
We having an ecommerce solution built in Joomla..Now we want to track the 
transactions in Google Analytics Control Panel. We have used the following 
codes in our checkout Page:

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-62664963-1']);
  _gaq.push(['_trackPageview']);
  _gaq.push(['_addTrans',
    '1234',           // transaction ID - required
    'Acme Clothing',  // affiliation or store name
    '11.99',          // total - required
    '1.29',           // tax
    '5',              // shipping
    'San Jose',       // city
    'California',     // state or province
    'USA'             // country
  ]);

   // add item might be called for every item in the shopping cart
   // where your ecommerce engine loops through each item in the cart and
   // prints out _addItem for each
  _gaq.push(['_addItem',
    '1234',           // transaction ID - required
    'DD44',           // SKU/code - required
    'T-Shirt',        // product name
    'Green Medium',   // category or variation
    '11.99',          // 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>

Also we have used the following codes in our analyticstracking.php :

<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', 'UA-62664963-1', 'auto');
  ga('send', 'pageview');

</script>

When we completes a transaction and seeing the reports in Conversions -> 
Ecommerce, Transactions is showing 0..Please help me out...

Original issue reported on code.google.com by amit.arc...@gmail.com on 8 May 2015 at 10:59

GoogleCodeExporter commented 8 years ago
My tracking ID is UA-62664963-1

Original comment by amit.arc...@gmail.com on 8 May 2015 at 1:44

GoogleCodeExporter commented 8 years ago
We are not getting any transactions on my Google Analytics Panel..I have used 
all the parameters to get those yet Transactions shows 0

Original comment by amit.arc...@gmail.com on 11 May 2015 at 8:38