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

submitted by /u/AnilTanwarMI
[link] [comments]

Digitalmarketing

Digital marketing agency in darbhanga

Digital marketing agency in Darbhanga Digital marketing agency in Bangalore Local seo service in Darbhanga Best digital marketing agency in patna

0 Comments