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

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

问题描述

所以,假设我想跟踪不同环境但在同一个域中的流量

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

https://portal.mywebsite.net/

并单独跟踪流量

https://production.mywebsite.net/

很抱歉,如果这是一个愚蠢的问题,但是您是通过过滤器来执行此操作,还是必须为每个环境设置新属性?提前致谢,我是 GA 的菜鸟.

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. 首先将过滤器应用于您的门户视图.转到查看">过滤器">创建新过滤器"
  2. 选择仅包含 &到主机名的流量,然后进入 portal.mywebsite.net.
  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.

冲洗并重复生产.

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

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