You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @MatteoGabriele! Congratulation for this nice Vue package. Here some useful functionalities that can be added to vue-gtag to get better control over the plugin.
Add method to check if gtag DOM elements (script and link) are already included (with or without bootstrap() method).
Alternative: with method bootstrap() check before if gtag DOM elements (script and link) are already included to avoid duplicate gtag DOM elements. If already included don't add DOM elements.
Add method to remove (unload, inverse of bootstrap()) the gtag DOM elements.
Add possibility to exclude tracking on single route or all sub-routes in the tree by setting a meta value in routes definitions.
Split pageTrackerExcludedRoutes to two separate settings pageTrackerExcludedRoutePaths and pageTrackerExcludedRouteNames to speed up the code.
Hi @MatteoGabriele! Congratulation for this nice Vue package. Here some useful functionalities that can be added to vue-gtag to get better control over the plugin.
bootstrap()
method).bootstrap()
check before if gtag DOM elements (script and link) are already included to avoid duplicate gtag DOM elements. If already included don't add DOM elements.bootstrap()
) the gtag DOM elements.pageTrackerExcludedRoutes
to two separate settingspageTrackerExcludedRoutePaths
andpageTrackerExcludedRouteNames
to speed up the code.Here an example for proposal 4. and 5.:
The text was updated successfully, but these errors were encountered: