|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
patrmich Smarty Rookie
Joined: 13 Nov 2012 Posts: 7
|
Posted: Tue Nov 13, 2012 9:32 am Post subject: Prestashop, Smarty 3, google adwords conversion code |
|
|
Hi,
I would like to count the adwords conversion in my web shop built with Prestashop using Smarty 3
In this purpose it is necessary to add the here below code to the landing page.
So such code must be added to the template file called order-confirmation.tpl.
I tried to add the Google code to my order-confirmation.tpl., but no conversion was taken into account.
I wonder whether any tag must be put anywhere in the Google code.
I thank you in advance for any help in this matter.
Kind Regards,
Patrick
Code given by my Google adwords account :
<!-- Google Code for Purchase/Sale Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = xxxxxxxx;
var google_conversion_language = "en";
var google_conversion_format = "1";
var google_conversion_color = "666666";
var google_conversion_label = "aaaaaaaaaa";
var google_conversion_value = 0;
/* ]]> */
</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="http://www.googleadservices.com/pagead/conversion/ xxxxxxxx/?value=0&label=aaaaaaaaaa&guid=ON&script=0"/>
</div>
</noscript> |
|
Back to top |
|
cbj4074 Smarty Regular
Joined: 10 Nov 2011 Posts: 49
|
Posted: Tue Nov 13, 2012 7:30 pm Post subject: |
|
|
Well, did you replace your true Adwords ID with "xxxxxxxx" for privacy reasons? Or does your template file say "xxxxxxxx", literally? |
|
Back to top |
|
patrmich Smarty Rookie
Joined: 13 Nov 2012 Posts: 7
|
Posted: Thu Nov 15, 2012 9:25 pm Post subject: |
|
|
Hi,
Of course, I did replace my Adwords ID with "xxxxxxxx" for privacy reasons.
The real ID was put in my order-confirmation.tpl file.
Kind Regards,
Patrick |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|