revolunet / angular-google-analytics

Google Analytics tracking for your AngularJS apps
MIT License
652 stars 172 forks source link

track-event directive triggered on-click for select element - should be configured to be triggered on-change #157

Open akleiber opened 8 years ago

akleiber commented 8 years ago

I want to track that what a user selects from a dropdown. When I use the event directive directly on the select element it will tricker a click and will also track as soon as the user clicks the dropdown.

Is there an option to tell the directive when to fire the event tracking?

akleiber commented 8 years ago

My solution now is to add an ng-change="trackSelection()" and track the event in the controller.