|
Where is this feature? | 1. | Log In | 2. | Cart Settings | 3. | Advanced Settings |
|
|
Google Analytics ID
Contact Google for complete integration details.
When creating your profile within Google use the following:
Profile Name: 860218.2uaerguo.asia/cgi-bin/cart.cgi
Ecommerce site: Yes
Once you have successfully setup your Google Analytics pages, Google will provide a snip of HTML as shown below.
Google Analytics Code (asynchronous _gaq.push) | <script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
(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> |
Enter the value shown in red as your Google Analytics ID value. The shopping cart will then automatically configure itself for both visitor and ecommerce tracking.
After completing all the steps above go back into your Google account and edit the shopping cart profile. On the top of the edit page in Google there is a "check status" button that you can use to make certain everything is setup properly.
If you already have your shopping cart buttons setup, you may need to modify them according to the following Google FAQs:
Using analytics with the traditional pageTracker or the new asynchronous _gaq.push page tracker.
A brief summary of the modification needed is to add the red text to your add to cart form tag
<form action="https://860218.2uaerguo.asia/cgi-bin/cart.cgi" onsubmit="_gaq.push(['_linkByPost', this]);"> | Or to add this modification if your using an anchor tag
<a href="https://860218.2uaerguo.asia/cgi-bin/cart.cgi" onclick="_gaq.push(['_link', 'https://860218.2uaerguo.asia/?login=parameters']); return false;"> |
|
|