Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 497 Bytes

custom-analytics.md

File metadata and controls

14 lines (10 loc) · 497 Bytes

Custom analytics.js URL

Due to country restrictions, in specific cases is necessary to add a custom URL to load the analytics.js file.

It is possible to use the customResourceURL prop in the plugin options

Vue.use(VueAnalytics, {
  id: 'UA-XXX-X',
  customResourceURL: 'http://your-custom-url/analytics.js'
})

By adding the customResourceURL you won't be able to switch between debug and production file, so you need to do it manually, depending on which file you want to use.