Tracking same domains but different environments in Google Analytics

六月ゝ 毕业季﹏ 提交于 2019-12-04 19:52:04

问题


So, say I want to track traffic to different environments, but in the same domain

https://portal.mywebsite.net/

and separately track traffic to

https://production.mywebsite.net/

Sorry if this is a stupid question, but do you do this through filters, or do you have to setup new properties per environment? thanks in advance, I'm a noob to GA.


回答1:


Create two new views one for portal and one for production:

  1. Start with applying a filter to your portal view. Go to View > Filters > Create New Filter
  2. Select Include only & traffic to the hostname, and drop in portal.mywebsite.net.

Rinse and repeat for production.



来源:https://stackoverflow.com/questions/24808166/tracking-same-domains-but-different-environments-in-google-analytics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!