Omkark Posted March 20, 2023 Share Posted March 20, 2023 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 --> <script> fbq('track', 'Purchase', {currency: "INR", value: '{literal}{$amount}{/literal}'}); </script> <script> var enhanced_conversion_data = { "email": '{literal}{$clientsdetails.email}{/literal}' }; </script> {literal} <!-- Global site tag (gtag.js) - Google Ads: 90 --> <script async src="https://www.googletagmanager.com/gtag/js?id=AW-0"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config','AW-90', {'allow_enhanced_conversions':true}); </script> {/literal} <script> gtag('event', 'conversion', { 'send_to': 'AW-90/tYVj####6##D', 'value': '{literal}{$amount}{/literal}', 'currency': 'INR', }); </script> {/if} 0 Quote Link to comment Share on other sites More sharing options...
RadWebHosting Posted March 30, 2023 Share Posted March 30, 2023 Which version of WHMCS are you using? 0 Quote Link to comment Share on other sites More sharing options...
Omkark Posted April 5, 2023 Author Share Posted April 5, 2023 Thank you for the response but I have resolved this issue. 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted April 11, 2023 Share Posted April 11, 2023 (edited) On 4/5/2023 at 8:24 AM, Omkark said: Thank you for the response but I have resolved this issue. Share your solution to assist others. Edited April 11, 2023 by pRieStaKos 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.