Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Webmaster Forums > Web Browsers and Statistics

GoogleCommunity Sponsor

Reply
 
LinkBack Thread Tools Display Modes
Old 12-02-2008, 03:22 AM   #1 (permalink)
Noogle
 
Join Date: Dec 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
eeg3697 is on a distinguished road
Question Google Analytics - ECommerce

Hi,
We have google up and running for regular page views but we seem to have problems with the E-commerce script. Could someone check this snippet to see if i'm missing something. Any help would be greatly appreciated. Thanks in advance

This script runs good on every page
------------------------------------------------------------------
<script type="text/javascript">
document.write(unescape("%3Cscript src='https://ssl.google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-6450809-2");
pageTracker._initData();
pageTracker._trackPageview("AddFundsSuccess");
</script>
------------------------------------------------------------------

This one does not
------------------------------------------------------------------
<script>
var pageTracker = _gat._getTracker("UA-6450809-2");
pageTracker._addTrans(
"1879001", // order ID - required
"Company", // affiliation or store name
"50.00", // total - required
"", // tax
"", // shipping
"Moncton", // city
"NB", // state or province
"Canada" // country
);
pageTracker._addItem(
"1879001", // item number
"Dep", // SKU/code - required
"Website", // product name
"Evoucher", // category or variation
"50.00", // unit price - required
"1" // quantity - required
);
pageTracker._trackTrans();
</script>
eeg3697 is offline   Reply With Quote
 
Sponsored Links
Old 12-04-2008, 02:58 AM   #2 (permalink)
Noogle
 
Join Date: Dec 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
eeg3697 is on a distinguished road
Problem resolved

We found the problem...

We were making this call twice , once for pageviews and the second for e-commerce. We remove the one in e-commerce and data started showing up.

var pageTracker = _gat._getTracker("UA-6450809-2");

thanks
eeg3697 is offline   Reply With Quote
Old 01-07-2009, 02:11 AM   #3 (permalink)
Googler
 
plaloma3d's Avatar
 
Join Date: Jan 2009
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
plaloma3d is on a distinguished road
I make web e-commerce
thank you
plaloma3d is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Analytics: Ecommerce is double, triple, quadruple counting transactions rebmyster Web Browsers and Statistics 1 05-28-2009 01:33 AM
ecommerce website design alaika5 General Discussion 0 10-18-2008 05:05 AM


All times are GMT -8. The time now is 06:03 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community