MatteoGabriele / vue-gtag

Global Site Tag plugin for Vue (gtag.js)
https://matteo-gabriele.gitbook.io/vue-gtag/
MIT License
856 stars 62 forks source link

Select scripts to load? #565

Open vlahde opened 2 months ago

vlahde commented 2 months ago

npm ls vue-gtag: vue-gtag@1.16.1 npm ls vue: vue@2.7.16

Description *

In my GA4 property, there are links to UA property and deprecated properties. These properties are removed, but yet vue-gtag seems to find them and try to load them. Is it possible to cherry pick gtag scripts to load on page load? disableScriptLoad does the trick, but then no scripts are loaded. If I manually load the one script I need using my measurement ID, vue-gtag will still try load the unwanted scripts as well.