Open martsyn opened 6 months ago
pageTrackerExcludedRoutes array is insufficient for large lists of routes. A custom logic is needed to be able to filter out the pages with no tracking, e.g.:
pageTrackerExcludedRoutes
app.use( VueGtag, { id: measurementId, onBeforeTrack: to => !to.meta?.hidden, }, router, )
I can offer two alternatives:
a) Make pageTrackerExcludedRoutes optionally a function b) add explicit function isRouteExcluded to options
isRouteExcluded
Please let me know if either of these is preferred instead of this PR.
pageTrackerExcludedRoutes
array is insufficient for large lists of routes. A custom logic is needed to be able to filter out the pages with no tracking, e.g.: