I am using [Dan Wilson’s google analytics plugin][1] for ionic.
I can trigger events from controller successfully.
I want to trigger analytics events on ng-click. I am trying to do that like this:
<ion-list>
<ion-item nav-clear menu-close ng-click="analytics.trackEvent('Dashboard', 'dashboard clicked');" ui-sref="app.dashboard">
Dashboard
</ion-item>
</ion-list>
But it’s not working. What am I doing wrong?
[1]: https://github.com/danwilson/google-analytics-plugin