Guest ianh Posted June 21, 2006 Share Posted June 21, 2006 Quote Link to comment Share on other sites More sharing options...
Guest Posted June 21, 2006 Share Posted June 21, 2006 Hi ianh I have got it working with completed sales... gwizards mod was missing a line so cart.tpl should have the following added to it: <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-XXXXXX-X"; urchinTracker(); </script> <body onLoad="java script:__utmSetTrans()"> <form style="display:none;" name="utmform"> <textarea id="utmtrans">UTM:T|{VAL_ORDER_ID}|YOUR SHOP NAME|{VAL_TOTAL}|TAX CODE|{VAL_SHIPPING}|{VAL_CITY}|County|LOCATION <!-- BEGIN: analytics --> UTM:I|{VAL_ORDER_ID}|{VAL_PROD_NAME}|{VAL_CAT}|{VAL_PRICE}|{VAL_QTY} <!-- END: analytics --> </textarea> </form> Replacing the items in CAPS Hope this helps!! Adam Quote Link to comment Share on other sites More sharing options...
Guest Posted June 21, 2006 Share Posted June 21, 2006 If you are tracking secure pages with GA this script source will bring up a partially secure alert (and scare your customers away). In that case, change all of your source tags to: <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script> It took me way too long to find this in the Google Analytics help system, so I thought I'd pass it on to save others the trouble. EDIT: I added this code back in a way that makes it not seem to be an external link... Is it OK this way? Quote Link to comment Share on other sites More sharing options...
Guest ITechWest Posted July 23, 2006 Share Posted July 23, 2006 Hi ianh I have got it working with completed sales... gwizards mod was missing a line so cart.tpl should have the following added to it: <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-XXXXXX-X"; urchinTracker(); </script> <body onLoad="java script:__utmSetTrans()"> <form style="display:none;" name="utmform"> <textarea id="utmtrans">UTM:T|{VAL_ORDER_ID}|YOUR SHOP NAME|{VAL_TOTAL}|TAX CODE|{VAL_SHIPPING}|{VAL_CITY}|County|LOCATION <!-- BEGIN: analytics --> UTM:I|{VAL_ORDER_ID}|{VAL_PROD_NAME}|{VAL_CAT}|{VAL_PRICE}|{VAL_QTY} <!-- END: analytics --> </textarea> </form> Replacing the items in CAPS Hope this helps!! Adam Where id you place this code in the tpl file... I can not find gwizard's mod either. Quote Link to comment Share on other sites More sharing options...
Guest morgankhalil Posted August 4, 2006 Share Posted August 4, 2006 hi acweb! thanks for the info on google analytics, really helpful. i just have a question on what you mean by replacing the stuff you have in caps. what exactly do i change it to? when it comes to tax code and location, what should i put in there? shop name im guessing is just what i have under the admin general settings "store/company name", right? Hi ianh I have got it working with completed sales... gwizards mod was missing a line so cart.tpl should have the following added to it: <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-XXXXXX-X"; urchinTracker(); </script> <body onLoad="java script:__utmSetTrans()"> <form style="display:none;" name="utmform"> <textarea id="utmtrans">UTM:T|{VAL_ORDER_ID}|YOUR SHOP NAME|{VAL_TOTAL}|TAX CODE|{VAL_SHIPPING}|{VAL_CITY}|County|LOCATION <!-- BEGIN: analytics --> UTM:I|{VAL_ORDER_ID}|{VAL_PROD_NAME}|{VAL_CAT}|{VAL_PRICE}|{VAL_QTY} <!-- END: analytics --> </textarea> </form> Replacing the items in CAPS Hope this helps!! Adam Quote Link to comment Share on other sites More sharing options...
Guest magicpaul Posted August 7, 2006 Share Posted August 7, 2006 Has anyone had any luck with this. I've been having a play around with one of my sites but can't seem to get it to work. I think it would be a really great thing to have working. Quote Link to comment Share on other sites More sharing options...
Guest ITechWest Posted August 7, 2006 Share Posted August 7, 2006 Has anyone had any luck with this. I've been having a play around with one of my sites but can't seem to get it to work. I think it would be a really great thing to have working. I agree, I am running v3.0.11 and cannot get this to work on the commerce tracking, as well as the conversion tracking with google adwords. Most of our customers come from google so I would love to intergrate the feature. If cc can get the affiliate module to work, how hard would it to be to add a google module, maybe even two... one for adwords and one for analytics. Especially since these are free services from google. Quote Link to comment Share on other sites More sharing options...
Guest magicpaul Posted August 8, 2006 Share Posted August 8, 2006 Well I got the Analytics tracking working. That was very easy. I just copied and pasted the Google code into the bottom of my global/index.tpl and global/cart.tpl files. However getting the conversion tracking to work was much more difficult. I copied the conversion code into the bottom of global/cart.tpl but it didn't seem to be working at all. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 8, 2006 Share Posted August 8, 2006 So, where do you go to sign up, or to apply to be invited? I'm not (yet) an adwords customer. Is that a requirement? My store site is also not yet active, so I'm hoping I could get it all setup and track everything from the very beginning. Thanks. -Carl Quote Link to comment Share on other sites More sharing options...
Guest ITechWest Posted August 8, 2006 Share Posted August 8, 2006 So, where do you go to sign up, or to apply to be invited? I'm not (yet) an adwords customer. Is that a requirement? My store site is also not yet active, so I'm hoping I could get it all setup and track everything from the very beginning. Thanks. -Carl Go here http://www.google.com/analytics/index.html and request an invite... took me only a few days to get my account up and running. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 14, 2006 Share Posted August 14, 2006 Wow. I got the invite code in like 10 minutes! lol I've been using froogle since it launched though don't use adwords. no clue if that affected anything. Now to give it a try and see if it actually works! Quote Link to comment Share on other sites More sharing options...
roban Posted August 14, 2006 Share Posted August 14, 2006 Analytics, conversion tracking and Adwords all working well on this end. Quote Link to comment Share on other sites More sharing options...
Guest ITechWest Posted August 14, 2006 Share Posted August 14, 2006 Analytics, conversion tracking and Adwords all working well on this end. What version and please share how and where you are putting the coversion tracking for analytics and adwords... I hve the tracking for traffic, but I need to get the actual coversion and ecommerce tracking working. Quote Link to comment Share on other sites More sharing options...
Guest morgankhalil Posted September 8, 2006 Share Posted September 8, 2006 could anyone give some instructions on getting the conversion tracking working please? this is such an incredible tool from google, i just can't believe no one else is commenting on this. Quote Link to comment Share on other sites More sharing options...
Guest mashurst Posted September 13, 2006 Share Posted September 13, 2006 sorry to doubt, but I was thinking that the conversion script should be in say confirmed.php only somwhere. if it gets put in cart.tpl then it is throughout the checkout, but i was thinking it would be best just to be on confirmed.php. I want it to be in the order success page, because what if the customer puts the item in their cart, but doesn't pay for it, or their order fails, I don't want it to count as a conversion. or am I wrong, I'm not the most savvy. i guess this might be handled by making up the funnel process and defining the success and checkout pages? do you need the individual item codes or will just the funnel process and regular tracking code work for general checkouts? i guess I am confusing the anaytics code snippet, the ecommerce code snippets and the conversion code snippet. Quote Link to comment Share on other sites More sharing options...
Guest mashurst Posted September 13, 2006 Share Posted September 13, 2006 in /confirmed.php the example code that needs to be placed in order to record a conversion, not a visit or a page view but a purchase that is directly related to the google ad is: <!-- Google Code for PURCHASE Conversion Page --> <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = YOURIDHERE; var google_conversion_language = "en_US"; var google_conversion_format = "1"; var google_conversion_color = "CC66CC"; if (1.0) { var google_conversion_value = 1.0; } var google_conversion_label = "PURCHASE"; //--> </script> <script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <img height=1 width=1 border=0 src="https://www.googleadservices.com/pagead/conversion/YOURIDHERE/?value=1.0&label=PURCHASE&script=0"> </noscript> the problem is that it is trying to put javascript into a php doc. the regular page view code works fine because it is going into a skin template file with html tags. Sculptex has a post in the cc 2 forum on how to do this for cc2 but i have been unsuccessful adapting it to cc3. I have read a lot of posts (other cart software, google etc) today and am still striking out. the google install guide suggests using an include statement. for some reason echo statements don't seem to work, nor do echo statements with html tags within the php. it is probably my implementation. it looks like there was a mod for this on cc.org but it is on the lamb due to some misconduct, which is unfortunate. -M Quote Link to comment Share on other sites More sharing options...
Guest Rob Hilken Posted December 5, 2006 Share Posted December 5, 2006 in /confirmed.php the example code that needs to be placed in order to record a conversion, not a visit or a page view but a purchase that is directly related to the google ad is: <!-- Google Code for PURCHASE Conversion Page --> <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = YOURIDHERE; var google_conversion_language = "en_US"; var google_conversion_format = "1"; var google_conversion_color = "CC66CC"; if (1.0) { var google_conversion_value = 1.0; } var google_conversion_label = "PURCHASE"; //--> </script> <script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <img height=1 width=1 border=0 src="https://www.googleadservices.com/pagead/conversion/YOURIDHERE/?value=1.0&label=PURCHASE&script=0"> </noscript> the problem is that it is trying to put javascript into a php doc. the regular page view code works fine because it is going into a skin template file with html tags. Sculptex has a post in the cc 2 forum on how to do this for cc2 but i have been unsuccessful adapting it to cc3. I have read a lot of posts (other cart software, google etc) today and am still striking out. the google install guide suggests using an include statement. for some reason echo statements don't seem to work, nor do echo statements with html tags within the php. it is probably my implementation. it looks like there was a mod for this on cc.org but it is on the lamb due to some misconduct, which is unfortunate. -M That is the AdWords tracking code and it goes into confirmed.tpl in your skin.. in the <!-- BEGIN: order_success --> section. My problem for entering the Analytics code is that the general tracking code is in my cart.tpl and index.tpl global skin files and the receipt code has to go below it... and i would have thought that code should go in confirmed.tpl as well, which would put the code above the tracking code... Any ideas? Can i put the tracking code on a page twice without it affecting the stats? Quote Link to comment Share on other sites More sharing options...
Guest Posted December 12, 2006 Share Posted December 12, 2006 Is there a reason that the general tracking code must be at the end of the body? If not then how about putting it above the {PAGE_CONTENT} in the global index.tpl and cart.tpl files. Then the conversion code would come up below when put into the confirmed.tpl. I'm about to implement Google analytics as well... would appreciate a heads up if there is a reason that the general analytics code needs to be the last thing in the body. Thanks! Quote Link to comment Share on other sites More sharing options...
Guest zenphilip Posted July 13, 2007 Share Posted July 13, 2007 bump for what you guys did with this. :) Quote Link to comment Share on other sites More sharing options...
Guest choccroc Posted August 23, 2007 Share Posted August 23, 2007 bump for what you guys did with this. Any solutions here? Please i have tried so many scenarios and nothing works. Im willing to pay to get it done. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 25, 2007 Share Posted August 25, 2007 bump for what you guys did with this. Any solutions here? Please i have tried so many scenarios and nothing works. Im willing to pay to get it done. The above code sort of works if you want full tracking but it doesn't track all sales and I can get it to work fully. i have a post over on .org asking for someone to help set it up but no willing parties yet! Quote Link to comment Share on other sites More sharing options...
Guest grafixster Posted September 7, 2007 Share Posted September 7, 2007 All the tracking code for for Google (adwords & analytics) works fine in index.tpl and cart.tpl The Conversion code is the problem. If i put it at the footer of confirm.tpl, wouldn't it track any hit to (success or error) as a Conversion? For example, if someone put their CC # in wrong, they are returned to confirm.tpl with the error "incorrect cc, try again." Since an error also calls confirmed.tpl it would track as a conversion. <!-- BEGIN: order_success --> <p>{LANG_ORDER_SUCCESSFUL}</p> <!-- BEGIN: aff_track --> {AFFILIATE_IMG_TRACK} <!-- END: aff_track --> <!-- END: order_success --> <!-- BEGIN: order_failed --> <p>{LANG_ORDER_FAILED}</p> <p>{LANG_ORDER_RETRY}</p> <div style="text-align: center; padding: 10px;"><a href="cart.php?act=step4" class="txtCheckout">{LANG_RETRY_BUTTON}</a></div> <!-- END: order_failed --> If I put the conversion tracking between the <!-- BEGIN: oder_success --> tags, would it only process on success? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.