MatteoGabriele / vue-gtag

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

Pass through gtag config options? (storage, anonymize_ip) #218

Closed evvvritt closed 4 years ago

evvvritt commented 4 years ago

I'm trying to implement this strategy for gtag without cookies but can't seem to figure out how to pass the storage:none parameter into your plugin.

I see from #150 and 93c17e1 you implemented a way to pass in additional config?

I tried the following but a cookie is still created:

Vue.use(VueGtag, {
      config: { id: "UA-XXXXXX", params: { storage: 'none', clientId: fingerprintJs.visitorId }}
})

Thanks!

evvvritt commented 4 years ago

Whups, had the key wrong 😑 { "client_storage": "none", "anonymize_ip": true} works