House of Fusion
Home of the ColdFusion Community

Search cf-talk

December 02, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31       

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

Google Conversion Tracking for Shooping Cart

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mike Little
05/16/2008 07:41 PM

hi guys, having a little trouble getting this installed... shopping cart value on confirmation page is #getProduct.order_total# google conversion code... <!-- Google Code for Purchase Conversion Page --> <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = 1065281749; var google_conversion_language = "en_US"; var google_conversion_format = "1"; var google_conversion_color = "ffffff"; if (1) {   var google_conversion_value = <cfoutput>#getProduct.order_total#</cfoutput>; } var google_conversion_label = "lMorCN-bRhDV0fv7Aw"; //--> </script>

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Adrian Lynch
05/17/2008 03:03 PM

Hey mike, you haven't said what the problem is. If it's the JS that's erroring, view the source of the page and see what's being returned to the browser. It might need some double quotes around the value you're outputting or it might be that the value is empty. Adrian http://www.adrianlynch.co.uk/ hi guys, having a little trouble getting this installed... shopping cart value on confirmation page is #getProduct.order_total# google conversion code... <!-- Google Code for Purchase Conversion Page --> <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = 1065281749; var google_conversion_language = "en_US"; var google_conversion_format = "1"; var google_conversion_color = "ffffff"; if (1) {   var google_conversion_value = <cfoutput>#getProduct.order_total#</cfoutput>; } var google_conversion_label = "lMorCN-bRhDV0fv7Aw"; //--> </script>

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mike Little
05/20/2008 05:31 PM

apologies, i was not quite clear... the code below is installed on my confirmation page (which is receiving orders ok), however no conversions are being recorded by adwords. was just wondering if anyone else had experience successfully installing conversion tracking for dynamic amounts. mike ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
William Seiter
05/20/2008 05:52 PM

You will probably need to add some surrounding quotes to the 'google_conversion_value' cfoutput setup.  Also verify that your format for that variable is correct to what they need. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mike Little
05/20/2008 07:51 PM

i don't think quotes are required. using google's default code (entered 23 in dollar value), they give the following code... <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = 1065281749; var google_conversion_language = "en_US"; var google_conversion_format = "1"; var google_conversion_color = "ffffff"; if (23) {   var google_conversion_value = 23; } var google_conversion_label = "exg5CJW3RhDV0fv7Aw"; //--> </script> it is the if (23) bit that must be causing the problem. what do i enter here if the value is dynamic?? mike


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists