AmazingDreams / vue-matomo

Vue plugin for Matomo Analytics
MIT License
274 stars 61 forks source link

Cross Domain Linking #115

Closed drilus closed 2 years ago

drilus commented 2 years ago

Could you add 'enableCrossDomainLinking' to the Vue.use constructor?

Also, when using cross domain linking the setDomains parameter must be set: _paq.push(["setDomains", [".domain1.com", ".domain2.com"]]);

Is that the same as the domains parameter? If so, only CrossDomainLinking would need to be added.

AmazingDreams commented 2 years ago

You can use the preInitActions

Vue.use(VueMatomo, {
  ...
  preInitActions: [
    ['enableCrossDomainLinking']
  ],
})

The domains parameter is the same as setDomains