Print Page | Close Window

Google Analytics stopped recording Transactions

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=2442
Printed Date: 03-July-2024 at 4:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Google Analytics stopped recording Transactions
Posted By: TrekLightGear
Subject: Google Analytics stopped recording Transactions
Date Posted: 06-February-2009 at 1:24am
Hey Everyone -

I realized it had been a while since I've gone through my stats so I just logged into Google Analytics for the first time since before the holidays.   I was shocked to see that GA doesn't show a single ecommerce transaction after December 23rd which is really strange.  I've since updated PC to 3.5, but I didn't do the upgrade until well after Jan 1st because I didn't want to risk screwing anything up during the holiday crunch.

Should I open a ticket for this?  Does anyone have any idea why GA would just suddenly stop recording the transactions?  I double checked all the code against the Wiki and instructions and it seems like I've got everything setup correctly.  I even checked against my backed up version of ordercomplete.asp and nothing seems to have changed that shouldn't have.

I know that we can manually send returns and exchanges to GA - is there a way for me to manually send all the transactions since the 23rd so my analytics figures are not off for the entire year?


-------------
Seth Haber



Replies:
Posted By: ProductCart
Date Posted: 06-February-2009 at 5:20am
We just checked our own Google Analytics reports and all e-commerce transactions are showing correctly. We also have not heard about this problem from other users, and we are not aware of any specific reason why the tracking would stop.

The issue is likely specific to your Web store.  The keys to successful e-commerce tracking are:
- you are using the "legacy" tracking code (we'll look at using the new tracking code later this year)
- e-commerce reporting is enabled in your GA account
- the Google Analytics files have been uploaded
http://wiki.earlyimpact.com/widgets/integrations/googleanalytics/ga_ecommerce - http://wiki.earlyimpact.com/widgets/integrations/googleanalytics/ga_ecommerce

Unfortunately there is no way to "add" transactions to the reports


-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software


Posted By: TrekLightGear
Date Posted: 06-February-2009 at 1:03pm
Well, the only thing that is different from your list is that I had switched over to the updated ga.js code at some point.   I did that because I read (here in the forums I think) that the issue with the new code was resolved, but it sounds like you don't think it is yet.   The problem is I don't remember when I changed the code, I really don't think I would have done it so close to the holidays but maybe I did.  I'm changing the code back to the legacy and I'll see if that resolves it.

Thanks again for the help EarlyImp!


-------------
Seth Haber


Posted By: loracady
Date Posted: 22-May-2009 at 12:13pm
What is the "legacy" code?  Do I still need to use that instead of the code provided by Google?  Is the legacy code the following:
<script src=" https://ssl.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-XXXXX-X"; urchinTracker(); </script>
from http://www.earlyimpact.com/pdf/ProductCart_Google_Analytics.pdf - http://www.earlyimpact.com/pdf/ProductCart_Google_Analytics.pdf ?

-------------
www.TheSleepShop.com


Posted By: Greg Dinger
Date Posted: 22-May-2009 at 12:28pm
Hi Lora,
 
Following is the code from a client who I am fairly certain that we went through and checked that e-commerce reporting is working, so this is the basic code you need.  Just use your account number.
 
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? " https://ssl - https://ssl ." : " http://www - 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">
try {
var pageTracker = _gat._getTracker("UA-############-1");
pageTracker._trackPageview();
} catch(err) {}</script>


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: loracady
Date Posted: 22-May-2009 at 1:17pm
Thanks Greg-  I tried the code that you provided, but I still get an "Object Expected" error on my line 735 on orderComplete.asp: 
<script type="text/javascript">
  __utmSetTrans();
  </script>
Not sure what to do about that.  If I remove that line from inc-GoogleAnalytics.asp, the error goes away, but I wonder if that messes up the analytics.  Again, as always, thanks for your help!

-------------
www.TheSleepShop.com


Posted By: Greg Dinger
Date Posted: 22-May-2009 at 1:30pm
735 of orderComplete.asp is WAY up in the middle of that script.  Anything you did that resulted in an area up there reveals something erroneous in your implementation.  I would double-check your code, or possibly see if EI will help via a support ticket.
 
 


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: loracady
Date Posted: 22-May-2009 at 1:53pm

If I place a test order on our website, I am at https://www.thesleepshop.com/store/pc/orderComplete.asp - https://www.thesleepshop.com/store/pc/orderComplete.asp .  If I right click and select view source, then paste that into an editor, line 735 is

<script type="text/javascript">
  __utmSetTrans();
  </script>
and the bottom of my browser says, Done with Errors on the page.  If I click to see more info, it gives me an Object Expected Error.  Anywho, thanks for your help!


-------------
www.TheSleepShop.com


Posted By: Greg Dinger
Date Posted: 22-May-2009 at 2:06pm
ok, of course - 735 is the rendered code.  As I mentioned by e-mail, unless EI can tackle this, let me know if you would like me to access the site and give you a hand.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net