Jump to content

Google Conversion tracking


Recommended Posts

  • 2 months later...
  • 4 months later...

Google Analytics didn't work for me but this did:

 

To get google adwords conversions to work paste the following code into this url: your_prestashop_folder/themes/prestashop/order-confirmation.tpl

 

<!-- Google Code for prestapurchase Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = THIS INFO COMES FROM YOUR GOOGLE ADWORDS ACCOUNT. TOOLS->CONVERSIONS-CODE;
var google_conversion_language = THIS INFO COMES FROM YOUR GOOGLE ADWORDS ACCOUNT. TOOLS->CONVERSIONS-CODE;
var google_conversion_format = THIS INFO COMES FROM YOUR GOOGLE ADWORDS ACCOUNT. TOOLS->CONVERSIONS-CODE;
var google_conversion_color = THIS INFO COMES FROM YOUR GOOGLE ADWORDS ACCOUNT. TOOLS->CONVERSIONS-CODE;
var google_conversion_label = THIS INFO COMES FROM YOUR GOOGLE ADWORDS ACCOUNT. TOOLS->CONVERSIONS-CODE;
var google_conversion_value = THIS INFO COMES FROM YOUR GOOGLE ADWORDS ACCOUNT. TOOLS->CONVERSIONS-CODE;
/* ]]> */
</script>
<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="THIS INFO COMES FROM YOUR GOOGLE ADWORDS ACCOUNT. TOOLS->CONVERSIONS-CODE"/>
</div>
</noscript>

 

If you get fancy with "var google_conversion_value" your shop may not work. At least for me, using paypal external credit card processing, trying to use a prestashop variable for the total purchase value just stopped the conversion from working. The reason for this was, after the credit card had been processed and the customer had returned from Paypal to my website, Prestashop had emptied the customers cart. Prestashop "did not remember" what the customer had purchase, so the variable was null, and it broke my google conversion code.

 

Also please note that this works for prestashop 1.47 I don't know about other versions, however IT SHOULD!

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...