Jump to content

Unable to add tracking script in complete.tpl page

Recommended Posts

On complete.tpl page in {if.paid} conditions I am trying to implement the following code but unable to add or track variables to it like {$amount} & {$clientsdetails.email} even adding {literal} tag is not working    

{if $ispaid}

<!-- Enter any HTML code which should be displayed when a user has completed checkout here -->
<!-- Common uses of this include conversion and affiliate tracking scripts -->


fbq('track', 'Purchase', {currency: "INR", value: '{literal}{$amount}{/literal}'});

var enhanced_conversion_data = {
"email": '{literal}{$clientsdetails.email}{/literal}'  

<!-- Global site tag (gtag.js) - Google Ads: 90 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-0"></script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config','AW-90', {'allow_enhanced_conversions':true});

gtag('event', 'conversion', {
'send_to': 'AW-90/tYVj####6##D',
'value': '{literal}{$amount}{/literal}',
'currency': 'INR',





Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated