revolunet / angular-google-analytics

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

Add trackPrefix to page object on events #202

Closed maxi-moto closed 7 years ago

maxi-moto commented 7 years ago

This is helpful when a view filters on a prefix and you want events specific to that view.

For instance, imagine setting environments on the same domain, differentiated by the prefix ('/internal/' and '/external/'), and you have views for internal and external filtered by the prefix. Now, events should be filtered to each view as well for accurate tracking.

justinsa commented 7 years ago

Thanks @maxi-moto. Change makes sense.

maxi-moto commented 7 years ago

Glad I can help!