Add Google Conversion Tracking Code to Prestashop CMS page
If you've created a custom thank you or confirmation page in Prestashop and need to place Google Conversion Tracking code in this page follow these steps:
In your "themes" folder locate your active theme folder and download the Smarty template file named "cms.tpl"
This is the one template file for all CMS pages
Because Prestashop uses Smarty the coding differs slightly from PHP
Add the following code to the end of the "cms.tpl" file
{if $cms->id == 1}
{literal}
Google Conversion Tracking Code Snippet Goes Here
{/literal}
{/if}
Change 1 to the corresponding ID number in your Prestashop admin site when you create your page.
Upload "cms.tpl" back into theme folder
In your "themes" folder locate your active theme folder and download the Smarty template file named "cms.tpl"
This is the one template file for all CMS pages
Because Prestashop uses Smarty the coding differs slightly from PHP
Add the following code to the end of the "cms.tpl" file
{if $cms->id == 1}
{literal}
Google Conversion Tracking Code Snippet Goes Here
{/literal}
{/if}
Change 1 to the corresponding ID number in your Prestashop admin site when you create your page.
Upload "cms.tpl" back into theme folder
Comments
Post a Comment