I have this on the client site:
<!-- Global site tag (gtag.js) - Google Ads: 9999999999 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-1070651145"></script>
<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-9999999999'); </script>
<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Product%20Page%27">
<!-- Event snippet for Xmas 2018 conversion page In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
<script> function gtag_report_conversion(url) { var callback = function () { if (typeof(url) != 'undefined') { window.location = url; } }; gtag('event', 'conversion', { 'send_to': 'AW-9999999999/xuDfCKbjyogBEImuw_4D', 'value': <actinic:block if="%3cactinic%3avariable%20name%3d%22IsGoogleExportIncludeTax%22%20%2f%3e" ><actinic:variable name="TaxInclusivePriceRaw" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsGoogleExportIncludeTax%22%20%2f%3e%20%3d%3d%200" ><actinic:variable name="TaxExclusivePriceRaw" selectable="false" /></actinic:block>, 'currency': 'GBP', 'transaction_id': '<actinic:variable name="ProdRef" />', 'event_callback': callback }); return false; } </script>
</actinic:block>
It works fine except <actinic:variable name="ProdRef" /> produces:
NETQUOTEVAR:PRODREF What variable should I use for : 'transaction_id': '?????' Thank you!
<!-- Global site tag (gtag.js) - Google Ads: 9999999999 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-1070651145"></script>
<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-9999999999'); </script>
<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Product%20Page%27">
<!-- Event snippet for Xmas 2018 conversion page In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
<script> function gtag_report_conversion(url) { var callback = function () { if (typeof(url) != 'undefined') { window.location = url; } }; gtag('event', 'conversion', { 'send_to': 'AW-9999999999/xuDfCKbjyogBEImuw_4D', 'value': <actinic:block if="%3cactinic%3avariable%20name%3d%22IsGoogleExportIncludeTax%22%20%2f%3e" ><actinic:variable name="TaxInclusivePriceRaw" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsGoogleExportIncludeTax%22%20%2f%3e%20%3d%3d%200" ><actinic:variable name="TaxExclusivePriceRaw" selectable="false" /></actinic:block>, 'currency': 'GBP', 'transaction_id': '<actinic:variable name="ProdRef" />', 'event_callback': callback }); return false; } </script>
</actinic:block>
It works fine except <actinic:variable name="ProdRef" /> produces:
NETQUOTEVAR:PRODREF What variable should I use for : 'transaction_id': '?????' Thank you!
Comment