A fair number of people arrive at this site looking for information about adding Google Analytics tracking to 1shoppingcart so I figured I better write something more thorough about it as at the moment the only content is comments on some other posts!
I’m currently working for a guy implementing some Google Analytics goals amongst other things and for some of his products he uses 1shoppingcart so I naturally attempted to add the Google Analytics script to those pages.
Unfortunately it appears that 1shoppingcart strip out any <script></script> tags which means you can’t add the Google Analytics tracking tag to the 1shoppingcart pages. I assume they’re doing it for potential security reasons? Although it still seems a little silly to me.
You really only have two options to get around this.
Tracking 1shoppingcart using Google Analytics
You can still use Google Analytics just not very well. You have to leave it off the sales pages on 1shoppingcart meaning you can’t do any advanced e-commerce tracking.
It’s also quite inaccurate because you are relying on the user to actually go back to the conformation page on your site otherwise the goal won’t get tracked.
Tracking 1shoppingcart with their own tracking system
1shopping cart actually have their own bespoke tracking system now as far as I’m aware (which I think is another reason they’ve blocked Google Analytics from working.
I’m not entirely clear how this works but later today or in the next few days I will be finding out about it and I’ll update this post with more info on it.
Stay tuned…
Related posts:
- Google Analytics Tutorial – Advanced e-commerce tracking
- Google Analytics Tutorial – Setting up Google Analytics
- Google Analytics Tutorial – How to track conversion rates
- Google Analytics Tutorial – How to filter unwanted data in Google Analytics
- Was there a reason for the recent Google Analytics downtime?
Bookmarking
-
Stumble | Digg | del.icio.us | RSS


{ 5 comments… read them below or add one }
I just spoke with 1ShoppingCart and they claim not to support adwords, which is crazy. (Of course I found this out after adding 300 products and code. oops.)
I’m looking forward to reading your other posts.
Banner boy
I’ve spoke to 2shoppingcart today and they said they have added javascript support last week, you can ask them to send you the variables they pass.
Adam, to my understanding if I have a dynamic thankyou page that retrieves the output variables from 1shoppingcart shouldn’t google analytics ecommerce be able to track those variables and get it working that way?
If you know what the variables are and can add them to the page then you should be able to track it as per this page http://www.adamjctaylor.com/google-analytics-tutorial-advanced-ecommerce-tracking
Are there any follow ups to this since I’d like to add google analytics to the check out page as well as my sales page.
Thanks,
Karen