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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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