在Google Analytics中跟踪相同的网域但是不同的环境 [英] Tracking same domains but different environments in Google Analytics

查看:104
本文介绍了在Google Analytics中跟踪相同的网域但是不同的环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,假设我想追踪流量到不同的环境,但是在同一个域名中

https://portal.mywebsite.net/



并分别追踪流量至

https://production.mywebsite.net/



很抱歉,如果这是一个愚蠢的问题,但是您是否通过过滤器来做到这一点,还是您必须在每个环境中设置新的属性?感谢提前,我是GA的noob。

解决方案

创建两个新的视图,一个用于门户,另一个用于生产:


  1. 首先将筛选器应用于您的门户视图。转到视图>过滤器>创建新过滤器

  2. 选择仅包含& 流量到主机名,并放入portal.mywebsite.net。



冲洗并重复生产。


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.

解决方案

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.

这篇关于在Google Analytics中跟踪相同的网域但是不同的环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆