Dan Wilson's Google Analytics plugin: how to trigger event from from html?


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-item nav-clear menu-close ng-click="analytics.trackEvent('Dashboard', 'dashboard clicked');" ui-sref="app.dashboard">

But it’s not working. What am I doing wrong?
[1]: https://github.com/danwilson/google-analytics-plugin