Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Config: PPC adwords w/Advance option Rate Topic   - - - - -

 

Posted 21 November 2007 - 05:05 PM #1

After a few days of failure and some great help from snorocket; I have finally got adwords advanced conversion tracking working correctly.

Below is a sample of my code in the order_details.tpl


{if $smarty.get.confirmation == 'Y' && $order_info.status == 'P'}
{* place any code you wish to display on this page right after the order has been placed *}

{literal}

<!-- Google Code for purchase Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = XXXXXXXXXXX;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "DEB58C";
if ({/literal}{$order_info.total}{literal}) {
var google_conversion_value = {/literal}{$order_info.total}{literal} ;
}
var google_conversion_label = "purchase";
//-->
</script>
<script language="JavaScript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height=1 width=1 border=0 src="http://www.googleadservices.com/pagead/conversion/XXXXXXXXXX/imp.gif?value={/literal}{$order_info.total}{literal} &label=purchase&script=0">
</noscript>

{/literal}

{/if}


The key to getting things working correctly is the {literal} tags. I hope this helps those members who have been tring to get this working as well. I was unable to find any posts that had the advanced option included. I will try to provide more in depth instruction if necessary, but I am short on time right now... SORRY......

Enjoy,
Danny

 
  • CNutrition
  • Junior Member
  • Members
  • Join Date: 22-May 08
  • 21 posts

Posted 06 November 2008 - 07:57 PM #2

Thanks, I just spent 3 hours working on this!
Sincerely Steve Sliwa
President
Cognitive Nutrition, Inc
CS Cart Version 3

 
  • raizscanlon
  • Junior Member
  • Members
  • Join Date: 16-Nov 08
  • 8 posts

Posted 06 January 2009 - 04:09 AM #3

Yeah I just posted a thank you over at another thread that i really meant for this one - ooops. That dynamic add-on is exactly what I needed, as was the "literal" tagging as i couldn't see how to escape the smarty error I was getting (not super-familiar with all this smarty/literal stuff) - so many many thanks for figuring it out for me - saved me hours of work no doubt.

Cheers

Robert

 
  • duneraver
  • Member
  • Members
  • Join Date: 29-Mar 08
  • 74 posts

Posted 08 February 2009 - 10:56 AM #4

XXXXXXXX

Do i need to fill in my own conversion id and where can i find it?

Rgds

 
  • egodshall
  • Member
  • Members
  • Join Date: 25-Sep 06
  • 38 posts

Posted 12 February 2009 - 06:47 PM #5

Will this work with older CS-Cart installs? I have 1.33sp2. My concern is the

{if $smarty.get.confirmation == 'Y' && $order_info.status == 'P'}

Section... I'm not sure if these are used in older versions of the cart.
www.NashuaNutrition.com
Specializing in High Quality Weight Loss Products Including Pre/Post Bariatric Surgery Nutrition.
Running CS-Cart 2.1.2

 

Posted 12 February 2009 - 09:04 PM #6

You will just have to test it, if the parameter is the same it should work.........

 
  • sraza
  • Senior Member
  • Members
  • Join Date: 19-Dec 07
  • 141 posts

Posted 16 February 2009 - 04:19 AM #7

Many thanks for this code. will save hours of searching and figuring out.

sraza

 
  • CSCartSkins
  • Senior Member
  • Members
  • Join Date: 07-Jan 09
  • 195 posts

Posted 16 February 2009 - 12:58 PM #8

Awesome work, I've got a client that was wanting the same thing. Thanks!

 
  • jain1980
  • Senior Member
  • Members
  • Join Date: 16-Dec 08
  • 317 posts

Posted 28 September 2009 - 05:15 PM #9

The key to getting things working correctly is the {literal} tags. I hope this helps those members who have been tring to get this working as well. I was unable to find any posts that had the advanced option included. I will try to provide more in depth instruction if necessary, but I am short on time right now... SORRY......

Enjoy,
Danny


What are the things that would change in your code if one is implementing this code on their site ? Of course of them is the Var google_conversion_id = XXXXXXXXXXX. what are the other variables that must be changed ?

Also how does the var google_conversion_format = "1" affect the conversion tracking ?

BTW great code and extremely helpful. Will certainly count in my list of most helpful codes for CS-cart newbies. The other one is the packing slip mod by luckdragon.:D

Thnx

 
  • glyndon
  • Senior Member
  • Members
  • Join Date: 07-Dec 06
  • 187 posts

Posted 25 January 2010 - 09:15 AM #10

I have a question about this.

Does the code above track orders that are the 'processed' status only? My client has informed me that her tracking is not correct but after talking to her it appears that orders are going from open to completed therefore bypassing the processed status.

I presume this is where the problems lies?

 

Posted 25 January 2010 - 09:06 PM #11

Yes, you are correct you need to change the Order Status Variable................


I have a question about this.

Does the code above track orders that are the 'processed' status only? My client has informed me that her tracking is not correct but after talking to her it appears that orders are going from open to completed therefore bypassing the processed status.

I presume this is where the problems lies?


Thanks
Danny

"www.GenteelReflections.com"

"www.TylerCandleStore.com"

 
  • glyndon
  • Senior Member
  • Members
  • Join Date: 07-Dec 06
  • 187 posts

Posted 26 January 2010 - 11:03 AM #12

Yes, you are correct you need to change the Order Status Variable................


Thank you.