angulartics / angulartics-google-analytics

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

How to use event tracking? #83

Closed eov1 closed 7 years ago

eov1 commented 7 years ago

The google docs show events should be recorded like so: ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]);

However the README for angulartica-google-analytics shows that you should remove this line : ga('send', 'pageview'); // DELETE THIS LINE!

How should events be triggered?