Google Analytics Issue

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
batmike
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Sep 04, 2007 10:46 am
Location: Minneapolis, MN
Contact:

Google Analytics Issue

Post by batmike » Tue Mar 04, 2008 7:11 am

I've got the Google Analytics Widget in all my footers and both the page tracking and e-commerce tracking are enabled in the Admin interface. What I can't figure out is why none of the e-commerce information is going through to Google. About a month ago, one of my test transactions went through, but since we've gone live, nothing has transferred at all.

Any ideas?

Mike

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

Post by Shopping Cart Admin » Tue Mar 04, 2008 7:17 am

Hello Mike,

Is the basic data being collected (page views etc)?
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

User avatar
batmike
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Sep 04, 2007 10:46 am
Location: Minneapolis, MN
Contact:

Post by batmike » Tue Mar 04, 2008 7:33 am

Yes it is. I'm still getting that information, just not the e-commerce data.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Tue Mar 04, 2008 6:40 pm

hmm wonder if mine is coming through... :?:
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
batmike
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Sep 04, 2007 10:46 am
Location: Minneapolis, MN
Contact:

Post by batmike » Wed Mar 05, 2008 9:13 am

I was wondering if turning SSL on would somehow block the information. I've been trying to think of the differences between when that test order went through and now, and that's the only difference I can come up with.

Mike

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Wed Mar 05, 2008 1:14 pm

I don't think mine is set up right on google's side so I'm not a good source of info right now
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
batmike
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Sep 04, 2007 10:46 am
Location: Minneapolis, MN
Contact:

Post by batmike » Wed Mar 05, 2008 1:25 pm

I scanned my site with a link checker and it returned an error on the https link to the ga.js ... which would explain why it doesn't work now that SSL is turned on. However, when I typed the link directly, it downloaded the js file just fine. So... the link's not bad, I'm not sure if it's AbleCommerce, or what.

I ended up downloading the file and putting it on my site and changing the GoogleAnalyticsWidget conlib to reference that link if it's a https page. I'll see tomorrow if my e-commerce data shows up in Google Analytics and report back then.

Mike

DonAshby
Commander (CMDR)
Commander (CMDR)
Posts: 172
Joined: Mon Oct 15, 2007 2:53 pm
Location: Palo Alto, CA
Contact:

Post by DonAshby » Wed Mar 05, 2008 8:11 pm

Good information here on the subject.

https://www.google.com/support/googleanalytics/bin/

Don :)

User avatar
batmike
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Sep 04, 2007 10:46 am
Location: Minneapolis, MN
Contact:

Post by batmike » Thu Mar 06, 2008 6:38 am

Well, my test didn't work out. Still no information. I really think that it would be a problem with the SSL because that's all I've changed, but I'm not sure what would be causing it. I might just shut it off for a minute, run a transaction for myself and see what happens.

Mike

User avatar
batmike
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Sep 04, 2007 10:46 am
Location: Minneapolis, MN
Contact:

Post by batmike » Sat Mar 08, 2008 8:04 am

I tried shutting it off and still got no data. I don't really know where to go from here but I'll just keep trying things and see if I can get it to work. It's hard because I have to wait a whole day to see if something worked ...

Mike

DonAshby
Commander (CMDR)
Commander (CMDR)
Posts: 172
Joined: Mon Oct 15, 2007 2:53 pm
Location: Palo Alto, CA
Contact:

Post by DonAshby » Sat Mar 08, 2008 9:18 am

Hi Mike

Are you using the new ga analytics or the older urchin version?

We are using the older urchin and want to change it to the newer version that came out in DEC.... so we are working on this too.

Have you actually done a transaction and looked at the code (view source) just before you make the purchase and just after you complete the purchase (on the receipt that comes after you have successfully made a transaction)? I believe that it needs to be in both places. If page view is working but ecommerce is not working, the google code may not be on the receipt page.

Don

User avatar
batmike
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Sep 04, 2007 10:46 am
Location: Minneapolis, MN
Contact:

Post by batmike » Tue Mar 11, 2008 7:13 am

Don - I've been using the new GA code. However, I think I've figured out what's causing the problem.

In the Google Analytics Widget, the new ga.js script file is called, so all the normal tracking data goes through fine using the new file. But for e-commerce transactions, the code is using the old UTM|T ... setup. The new ga.js has a different setup using the _addTrans and _addItem methods.

Now for the new problem ... I've never done very good with setting up the transaction code so if anyone has some better experience with that, I'd certainly be grateful. (I'll submit a bug request too, though)

Mike

DonAshby
Commander (CMDR)
Commander (CMDR)
Posts: 172
Joined: Mon Oct 15, 2007 2:53 pm
Location: Palo Alto, CA
Contact:

Post by DonAshby » Tue Mar 11, 2008 5:43 pm

Hi Mike,

Try it this way with ga on 1 side and ua on the checkout receipt side - it seems to work for us as we see tracking and orders both. Or if not, you could just use Urchin on both sides. This ga is new for Google - in DEC.

Mike and Logan - check it out as ga is the new code and should work on both sides of the Checkout Process.

Don

keats76
Commander (CMDR)
Commander (CMDR)
Posts: 117
Joined: Sat Dec 15, 2007 4:45 pm

Re: Google Analytics Issue

Post by keats76 » Fri Jun 06, 2008 12:55 pm

Does anyone have an update on this item? I'm thinking about enabling e-commerce tracking as well.

I suppose I could write my own hooks to the addItem and addTrans methods in the receipt page, but I'd rather stick with the widget.

Thanks,
Mike

DonAshby
Commander (CMDR)
Commander (CMDR)
Posts: 172
Joined: Mon Oct 15, 2007 2:53 pm
Location: Palo Alto, CA
Contact:

Re: Google Analytics Issue

Post by DonAshby » Fri Jun 06, 2008 5:42 pm

Hi All,

We have the old version of Google Analytics working ( the Urchin version ). When we tried to install the new Google ga code ( revised in Dec 2007 ) it did not work properly. I wonder if AC has checked this or if anyone else has successfully installed the new ga code ??

Judy ??

Thanks, Don :?:

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Google Analytics Issue

Post by jmestep » Fri Jun 06, 2008 7:56 pm

I installed it on a site a few days ago that is supposed to go live next week and I am getting data. I haven't tried to set up the e commerce tracking yet. Here is the code I used:
<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-xxxxx-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
BTW, you are goinginstyle.com aren't you?
I got a page error trying to access it
Server Error in '/gis' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
-----

I got in OK when I went to a link in your sitemap I found in Google.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

DonAshby
Commander (CMDR)
Commander (CMDR)
Posts: 172
Joined: Mon Oct 15, 2007 2:53 pm
Location: Palo Alto, CA
Contact:

Re: Google Analytics Issue

Post by DonAshby » Fri Jun 06, 2008 8:37 pm

Hi Judy,

Thanks. The error is unrelated ... our Home Page got corrupted when we tried to set the Product Reviews from False to True. And so we restored the database and all is well.

On Google Analytics - just to tell you our experience. We got ga to work on the web site of the site but when we put it on the cart side ( different job ) we got no ecommerce data. We got page tracking but no sales or transactions info. So we took ga off the cart and we are now getting both page info and sales info.

A strange one ... we dont know if it is us or AC 7. Also, that was with RC1 - we havent touched it since then as we havent heard of anyone else getting the new ga code to work on both the pages and the cart.

Let us know what you find. If it works on both sides for you, we will try it again.

Don

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Google Analytics Issue

Post by jmestep » Sat Jun 07, 2008 8:28 am

I'll do some checking this weekend on the ecommerce part of the new ga.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

DonAshby
Commander (CMDR)
Commander (CMDR)
Posts: 172
Joined: Mon Oct 15, 2007 2:53 pm
Location: Palo Alto, CA
Contact:

Re: Google Analytics Issue

Post by DonAshby » Sat Jun 07, 2008 10:10 am

Thanks Judy,

I hope RC3 cleared this ga tracking issue, up but I dont know as we havent looked at it since we tried to make it work as few months ago. Google Tracking is a very valuable tool to have ... The old Google Tracking code we put onto every page + the shopping cart ( separately) last Nov seems to be working but if Google recommends an update to the new code ( with more enhanced features ) , it would be nice to install it.

****

On another note, I think it would be good to have a review of the AC 7 Feature list - what is now working and what isnt working properly. I do not believe that this list has been updated since last September. We are still trying to figure out how to do the feeds and how to get Google Checkout to work properly with callback URLs and proper transfer of options (colors), tax, and variations in shipping prices ( as a function of price).

This is the Feature List for AC 7 :

http://www.ablecommerce.com/AbleCommerc ... 25C20.aspx

Don :?:

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Google Analytics Issue

Post by jmestep » Wed Jun 11, 2008 6:48 pm

I am getting ecommerce data in GA using the above tracking code.
Be sure to turn on the Ecommerce Website? Yes in GA.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

ev12
Ensign (ENS)
Ensign (ENS)
Posts: 1
Joined: Wed Jun 11, 2008 8:57 pm

Re: Google Analytics Issue

Post by ev12 » Wed Jun 11, 2008 9:00 pm

I am new to able commerce. Does anyone have any idea where one is supposed to place the google analytics code for google to track the data?

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Google Analytics Issue

Post by jmestep » Thu Jun 12, 2008 9:42 am

I don't remember for sure, but I think all I did was enter the Urchin Id in the Configure-->Page Tracking and check the boxes. There is also info on that page about adding the tracking code to the pages. Then turn on Ecommerce tracking in your GA account.
GASetup.gif
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply