angulartics / angulartics-google-analytics

Google Analytics plugin for Angulartics
MIT License
133 stars 86 forks source link

Custom event action specification. #95

Closed jasil1414 closed 7 years ago

jasil1414 commented 7 years ago

Functionality to specify custom eventAction value for certain use cases where the action name is different from the HTML element text with which interaction takes place. In the absence of the specification, the eventAction value is inferred from the html text of the element as usual.

DanWilkerson commented 7 years ago

Hello; I believe this feature is already supported - you can specify a custom Action using declarative tracking by setting the analytics-event attribute to your desired action, and you can choose the action yourself when manually calling $analytics.eventTrack(actionName). Let me know if I'm missing something!