Google Analytics

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
albatreeq
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Sat Jul 19, 2008 11:14 am

Google Analytics

Post by albatreeq » Mon Jul 28, 2008 12:30 pm

How do I put Google Analytics code on each and every page? :(

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Google Analytics

Post by mazhar » Mon Jul 28, 2008 12:45 pm

Use Configure->Page Tracking page on Merchant Side.
Last edited by mazhar on Mon Jul 28, 2008 1:22 pm, edited 2 times in total.

albatreeq
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Sat Jul 19, 2008 11:14 am

Re: Google Analytics

Post by albatreeq » Mon Jul 28, 2008 1:02 pm

Sorry for my ignorance. Should I put the below code in the header section of "Footer With Google Analytics" scriptlet?

Code: Select all

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxxxx-x");
pageTracker._initData();
pageTracker._trackPageview();
</script>

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Google Analytics

Post by mazhar » Mon Jul 28, 2008 1:20 pm

Just go to the Merchant Side and from the top menu navigate to the Configure->Page Tracking.

And provide your account id in Google Urchin ID text field and check the Enable Page Tracking: check box.

The detailed information about these options and their requirements are listed on the same page you can read them as well.

TIP If you want to enable page tracking for complete store just add the [[ConLib:GoogleAnalyticsWidget]] to the Standard footer scriptlet

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: Google Analytics

Post by sohaib » Mon Jul 28, 2008 1:27 pm

Sorry for my ignorance. Should I put the below code in the header section of "Footer With Google Analytics" scriptlet?
Hello,

You don't need to add any code anywhere. The integration is done already for you. You just need to provide the Google Urchin ID to Ablecommerce. All your pages that use a footer scriptlet that has [[ConLib:GoogleAnalyticsWidget]] in it will be tracked. You can either add this text manually in your footer scriptlet or just use 'Footer With Google Analytics' footer.

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Re: Google Analytics

Post by Shopping Cart Admin » Mon Jul 28, 2008 2:18 pm

Hello,

This if fully documented in our help site:

http://help.ablecommerce.com/mergedProj ... lytics.htm
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

Post Reply