amp html - Pass dynamic event label in Google AMP analytics event tracking -


i want track event google analytics when link clicked on amp html page. want pass link(href) eventlabel while tracking event. there way set link url data-* attribute can passed google analytics event tracking script. or there other way this.

this pretty standard thing google analytics amp page doesn't cover it.

it seems possible. amp supported google analytics extended component.

events user interactions content can tracked independently web page or screen load. event tracking clicked links can monitored like:

.., "trackanchorclicks": { "on": "click", "selector": "a", "request": "event", "vars": { "eventid": "42", "eventlabel": "clicked on link" } 

Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -