Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Ecommerce tracking in NetSuite with gtag js
I'm having trouble configuring my gtag script, I added the following script:
window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-xxxxxxx-x'); gtag('event', 'purchase', {transaction_id: '<%=getCurrentAttribute('Confirmation','tranid','' )%>', value: <%=getCurrentAttribute('confirmation','total','')% >});This is the response I get when I'm on the confirmation page:
[Error processing dynamic tag getCurrentAttribute('Confirmation','tranid','') : unknown record type null]', value: [Error processing dynamic tag getCurrentAttribute('confirmation','total','') : unknown record type null]I've also read the gtag events: https://developers.google.com/analyt...nced-ecommerce
Tagged:
0