Celithrandil Posted September 3, 2018 Share Posted September 3, 2018 Hi, how can I modify the complete.tpl in Premium Comparison ? I have a tracking code: "<script> gtag('event', 'conversion', { 'send_to': 'AW-xyz', 'value': 1.0, 'currency': 'HUF', 'transaction_id': '' }); </script>" 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 4, 2018 Share Posted September 4, 2018 16 hours ago, Celithrandil said: how can I modify the complete.tpl in Premium Comparison ? by the time the user gets to the complete stage, the cart will be using Standard Cart - so you could either modify /templates/orderforms/standard_cart/complete.tpl or use an action hook to add the code. 0 Quote Link to comment Share on other sites More sharing options...
Celithrandil Posted September 4, 2018 Author Share Posted September 4, 2018 its doesnt work: "{if $ispaid} {literal} <script> gtag('event', 'conversion', { send_to': 'AW-xyz', 'value': 1.0, 'currency': 'HUF', 'transaction_id': '' }); </script> {/literal} {/if}" 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 8, 2018 Share Posted September 8, 2018 have you tried it without the literal tags ? also, I think WHMCS still uses analytics.js, so whether you can mix&match this with gtag, I don't know. 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.