I have multiple domains that use the same files (from git master branch). 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. It also registers on the domain2.com google analytics dashboard.
Please help.
Defining the tracking code or GA_ID to an environment variable on each instance helped me solve the issue.