miguelzakharia / aurelia-google-analytics

An Aurelia.io plugin that adds Google Analytics page tracking to your project.
MIT License
29 stars 23 forks source link

Ignore route #23

Closed damylen closed 5 years ago

damylen commented 7 years ago

Is it possible to ignore a specific route to be included in the analysis? Some of my pages are be called by a bot (on purpose) and I would like those pages to be removed from google analytics.

miguelzakharia commented 7 years ago

Currently there is not. However, pageTracking option can be modified to include an ignore property. Maybe it can take a regex that is checked before the tracking info is sent to GA. Would that work?