|
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Google Conversion Tracking for Shooping Cart
hi guys,Mike Little 05/16/08 07:41 P Hey mike, you haven't said what the problem is.Adrian Lynch 05/17/08 03:03 P apologies, i was not quite clear...Mike Little 05/20/08 05:31 P 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.William Seiter 05/20/08 05:52 P i don't think quotes are required.Mike Little 05/20/08 07:51 P 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> 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> 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 ----- 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 ----- 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
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||