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.
当前内容版权归 vue-analytics 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 vue-analytics .