![]() |
Google Conversion Tracking
Google recently released a conversion tracking tool. In order to use their tool you need to add the to your order confirmation/receipt page.
I edited the /customer/main/order_message.tpl template and added the following: Code:
<script language="JavaScript"> I received the following error when I tried to place my order. Instead of the normal receipt page I received: Fatal error: Smarty: [in customer/main/order_message.tpl line 29]: syntax error: invalid attribute name - '=' in /home/xcart/public_html/store/Smarty-2.3.0/Smarty_Compiler.class.php on line 1398 Anybody have any idea what I'm doing wrong and how I can correct this issue ? Also, it would be nice to be able to use the order total without shipping charges included. Is this possible ? |
Nobody ? :(
|
8O , Pardon me if this is a simplistic question,
You did wrap the javascript in {literal} {/literal} tags right? Regards, Glen |
That would certainly do it...
|
Yeah you need do do it as a {literal} include but make sure you generate the right code for your site, i.e google does it for both http: and https://
You'll also find it sticks a silly image on your site too. |
Guys,
Sorry I'm not a programmer.....can you show me an example that would work for my site ? TIA! |
Code:
{literal} |
Thanks...that was wayyy to easy ;-)
|
All times are GMT -8. The time now is 01:13 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.