Click here to Skip to main content
15,920,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The following code i need to implement on few pages on my website.
So if anybody has the idea, can help me out.
the pages are :

• Shopping Cart
• Shipping Address
• Payment Method
• Checkout Confirm
• Checkout Completed


The SEO code :

JavaScript
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-32748164-1']);
  _gaq.push(['_trackPageview']);

  _gaq.push(['_addTrans',
    ' ',                 //Order Number
    ' ',                 //Price
    ' ',                 //Total
    ' ',                 //Shipping1
    ' ',                 //Order Total
    ' ',                 //city
    ' ',                 //State
]);

  _gaq.push(['_addItem',
    ' ',                  //Order Number
    ' ',                  //SKU
    ' ',                  //Product
    ' ',                  //Price
    ' ',                  //Quantity
]);

  _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>
Posted
Updated 9-Dec-12 23:35pm
v2

1 solution

The code you have mentioned above seems to be analytical code. This can be placed in the master page footer (or can be right below the content place holder or before the end of the body tag.

This is not an SEO code. Misleading title. Please use appropriate titles for quick answers.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900