E-junkie - We help you sell online
World Class Solution - Damon @ PayPal
Sell & promote your products Join affiliate programs offered by sellers Shop Community
  Google Custom Search

E-junkie Ecommerce Forums » E-junkie Discussions

Tag Cloud for this topic:

Google Analytics Tracking



Matty
member
Posts: 42


I'm trying to get Total cost of purchase, sku, city, etc. passed to google analytics. After enabling ecommerce in GA
I know the following code E-junkie code is not good enough....

<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 ejGATracker = _gat._getTracker("UA-XXXXX-X");
ejGATracker._setDomainName("none");
ejGATracker._setAllowLinker(true);
ejGATracker._trackPageview();
</script>

SO, I added the javascript part to it and it still does not work (the following):

<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 ejGATracker = _gat._getTracker("UA-796508-1");
ejGATracker._setDomainName("none");
ejGATracker._setAllowLinker(true);
ejGATracker._trackPageview();

pageTracker._addTrans(
"order-id", // required
"affiliate or store name",
"total",
"tax",
"shipping",
"city",
"state",
"country"
);

pageTracker._addItem(
"order-id", // required
"SKU",
"product name",
"product category",
"unit price", // required
"quantity" //required
);

pageTracker._trackTrans();
</script>


Does anyone know what I am missing?

Thanks!

Matt


#
POSTED ON: January 5, 2009 @ 21:10 GMT -7




Tyson
E-Junkie Crew
Posts: 1486


I'll have to ask Development to look into this, as it appears you're trying to do something above and beyond the standard Analytics integration we document and officially support.

I can tell you that for order payments made via Google Checkout, GC is able to directly transmit eCommerce data for tracking, regardless of whether the buyer continues past checkout to any conversion/thank-you page with tracking code.


#
POSTED ON: January 6, 2009 @ 13:36 GMT -7




Matty
member
Posts: 42


Tyson thanks for responding.

All of my Google Checkout orders get read, and I can see revenue.

It seems like pretty straightforward solution as Google Analytics paints a pretty easy explaination here - >

http://www.google.com/support/analytics/bin/answer.py?hl=en& answer=55528

These methods must live on the receipt page. I have put it on my thank you page and no luck.

Please check this article, that's how I understand this process :

http://www.epikone.com/blog/2008/01/22/google-analytics-e-commerce- tracking-pt-2-installation-setup/

Perhaps I need to use a different thank you page method (try the customizable on provided in the "manage your own products" page.

Also another solution I was thinking was placing the code on the actual cart page.

Thanks for your reply and looking forward to a response.


#
POSTED ON: January 6, 2009 @ 20:49 GMT -7




Matty
member
Posts: 42


Tyson,

Let me also add that this would make us seriously consider another shopping cart.

If we can't track revenue from source, what's kind of Google Analytics integration is that?

Not much.

I hope we can find a custom remedy, because I've loved your product thus far.

Matt


#
POSTED ON: January 8, 2009 @ 16:51 GMT -7




Matty
member
Posts: 42


Any update on this?


#
POSTED ON: January 15, 2009 @ 08:40 GMT -7


You must be logged in to make a post. Please click here to login.

PayPal Certified Integration Google Checkout Certified Integrattion 30 Day Money Back Guarantee Slam the Online Scam
 Share this page!