ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - google analytics
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

google analytics

 Post Reply Post Reply
Author
Message
JWL View Drop Down
Senior Member
Senior Member


Joined: 15-August-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote JWL Quote  Post ReplyReply Direct Link To This Post Topic: google analytics
    Posted: 04-June-2009 at 5:20pm
I am using version 3.12, are these files up to date:

http://wiki.earlyimpact.com/_media/widgets/integrations/googleanalytics/productcart_googleanalytics_101008.zip

They contain the GA files for 3.12 - but I think GA is updated from the Urchin stats it was using, when I just signed up it had the old Urchin stats and a newer code, and I selected the newer code.  Here is a sample of the new code:

<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">
try {
var pageTracker = _gat._getTracker("UA-XXXXXXX-X");
pageTracker._trackPageview();

} catch(err) {}</script>


I am most interested in tracking conversions... the instructions in the PDF file linked above seem pretty straight forward, I was just wondering if those files are up to date, thanks!


Edited by JWL - 04-June-2009 at 5:34pm
Back to Top
JWL View Drop Down
Senior Member
Senior Member


Joined: 15-August-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote JWL Quote  Post ReplyReply Direct Link To This Post Posted: 05-June-2009 at 3:10pm
Here is the legacy urchin code:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
try {
_uacct = "UA-XXXXXXX-X";
urchinTracker();
} catch(err) {}</script>

Should I use this code with the .asp files linked above?!  Thanks!
Back to Top
JWL View Drop Down
Senior Member
Senior Member


Joined: 15-August-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote JWL Quote  Post ReplyReply Direct Link To This Post Posted: 05-June-2009 at 3:59pm
Ok, I used the first code and added this below it:
<!--#include file="inc-GoogleAnalytics.asp"-->

I guess that's all I do... but I uploaded files to me pcadmin dir, does that
mean I can view some aspect of GA from my control panel?! Was this so I can
adjust for returns and such in the admin panel?

Thanks.


Edited by JWL - 05-June-2009 at 4:10pm
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 05-June-2009 at 5:11pm
Google Analytics reports backs to Google - so it's your Google account you view to see the reports etc.
Back to Top
JWL View Drop Down
Senior Member
Senior Member


Joined: 15-August-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote JWL Quote  Post ReplyReply Direct Link To This Post Posted: 05-June-2009 at 6:36pm
I don't know, I put this in the footer:

<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">
try {
var pageTracker = _gat._getTracker("UA-XXXXXXX-X");
pageTracker._trackPageview();

} catch(err) {}</script>
<!--#include file="inc-GoogleAnalytics.asp"-->

And, I enabled ecommerce on the GA settings, so I guess I'll see if the conversions show up when a sale comes in.


Edited by JWL - 05-June-2009 at 6:36pm
Back to Top
JWL View Drop Down
Senior Member
Senior Member


Joined: 15-August-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote JWL Quote  Post ReplyReply Direct Link To This Post Posted: 07-June-2009 at 11:46am
well the conversion tracking isn't working - no big surprise, I didn't expect it to... the GA stats work, can someone confirm if the newer GA conversion tool works with version 3.12v.

I have all the code, outlined in the GA .pdf file including the snippet on the ordercomplete.asp page - it was actually on that page already, I didn't have to add it.

Anyway, I'd like someone to confirm this is working for them, because I don't know how to troubleshoot.  I also enabled the ecommerce store in the GA settings - so I don't know what the issue is.  I've also waited over 24 hours for the conversions to show up.
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 07-June-2009 at 12:25pm
My experience has been that ONLY the old GA code works if you want the ecommerce reports in GA to work.
Back to Top
JWL View Drop Down
Senior Member
Senior Member


Joined: 15-August-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote JWL Quote  Post ReplyReply Direct Link To This Post Posted: 07-June-2009 at 1:02pm
Yea, I kind of figured that... that's why I was asking if those GA files were up to date, the inc-GA.asp  file references only a urchin.js
<script src="https://checkout.google.com/files/digital/urchin_post.js" type="text/javascript"></script>

So, I was wondering if the conversion tool would work with the newer ga.js. I guess they need to update the file to support the new code.


Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 07-June-2009 at 1:25pm
For now, please implement the old code.  I'm not quite certain what the limitations or challenges are (beyond time/resources) for implementing the new code, but I do know this has been the solution for multiple sites I have been asked to resolve in this regard.
Back to Top
JWL View Drop Down
Senior Member
Senior Member


Joined: 15-August-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote JWL Quote  Post ReplyReply Direct Link To This Post Posted: 09-June-2009 at 3:56pm
yea old urchin.js code works with conversion tool - EI should update GA to support the new GA if they haven't already... I don't know - I'm using 3.12.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.