How can we add event tracking code on AMP pages?
Hello,
I am using mentioned event tracking code for our amp page but it showing "HTML Event attributes, aka 'on*', are not allowed in AMP. Instead use 'amp-bind'." error in the Google search console.
Event Tracking Code: onclick="gtag('event', 'click', { event_category: 'GST Analyst', event_label: 'Play Store', value: 1});"
Please help us, how we can use the event tracking code for AMP pages.
Thanks
[link] [comments]
Digitalmarketing
0 Comments