Print Page | Close Window

google analytics

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=2775
Printed Date: 26-July-2025 at 7:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: google analytics
Posted By: JWL
Subject: google analytics
Date 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!



Replies:
Posted By: JWL
Date 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!


Posted By: JWL
Date 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.


Posted By: Hamish
Date 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.

-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: JWL
Date 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.


Posted By: JWL
Date 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.


Posted By: Greg Dinger
Date 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.

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

Certified ProductCart Developer

Web Design/Development/Hosting

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


Posted By: JWL
Date 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.




Posted By: Greg Dinger
Date 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.

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

Certified ProductCart Developer

Web Design/Development/Hosting

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


Posted By: JWL
Date 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.



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