mib200 / vue-gtm

Simple implementation of Google Tag Manager in Vue.js 2.0
Apache License 2.0
242 stars 85 forks source link

Passing 'anonymize_ip': true in config is not working #42

Closed VictorGa closed 5 years ago

VictorGa commented 5 years ago

Hello,

I am trying to set anonymize_ip to true through the main config object, but I can't see the property being set.

Vue.use(VueGtm, {
  id: 'XXX', // Your GTM ID
  anonymize_ip: true,
  enabled: true, 
  debug: true,
  vueRouter: router
  ignoredViews: [''] 
});

Is there a possibility to pass this property in the config?

Thanks!

emptydriptray commented 5 years ago

You can configure this in GTM. https://stackoverflow.com/questions/50528008/how-to-correctly-anonymize-ip-for-tag-manager-code

mib200 commented 5 years ago

closing this as it can be done in GTM itself