[英]How to implement google analytics on vue app on multiple domains?
I have multiple domains that use the same files (from git master branch). 我有多个域使用相同的文件(来自git master分支)。 Now, I want to implement google analytics on each domain.
现在,我想在每个域上实施谷歌分析。
I've tried this vue-anlaytics package multiple domain tracking (see link - https://medium.com/dailyjs/tips-tricks-for-vue-analytics-87a9d2838915#7ead ) but the problem is whenever I try to visit domain1.com. 我已经尝试了这个vue-anlaytics包多域跟踪(请参阅链接 - https://medium.com/dailyjs/tips-tricks-for-vue-analytics-87a9d2838915#7ead )但问题是每当我尝试访问domain1时.COM。 It also registers on the domain2.com google analytics dashboard.
它还在domain2.com google analytics仪表板上注册。
Please help. 请帮忙。
将跟踪代码或GA_ID定义到每个实例上的环境变量帮助我解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.