Google 分析未过滤内部流量
Google Analytics not filtering internal traffic
我知道以前有过类似的问题,但是我试过很多网上给出的解决方案都无济于事。我只是无法在我的 Django 网站上隐藏 Google 分析的内部流量。
我正在从管理->查看->过滤器中设置过滤器。已尝试使用固定 IP 和正则表达式模式进行预定义和自定义。 (是的,我已经从 whatismyip.com 仔细检查了我的 IP,我使用的是正确的 IP)
我在某处读到过滤器需要时间才能生效,所以即使等了 24 小时,我仍然看到很多内部流量。
Google 当我从内部 IP 访问页面时,Tag Assistant 也在跟踪它们(不确定它是否应该知道过滤器)
不确定我哪里出错了。
(我正在使用反向代理,但希望这不会改变任何东西,因为 google 分析代码在客户端是 运行)
不要在默认视图(称为 'All Website Data')上使用任何过滤器。创建一个单独的视图,然后在其上创建一个过滤器。那行得通。
(经过几天的努力,this 回复帮助我解决了上述问题)
我也为此苦苦挣扎,所以这就是我的发现。
请注意,实时报告最多可能需要 2 小时才能赶上并反映分析配置更改,例如添加过滤器。
可能的解决方案
1) 按照其他答案中的建议,将默认视图保留为默认视图并为过滤器创建一个附加视图:
The default view collects
all traffic. You need to create a new view for which you can apply
your filter. Check out item 3 here
https://support.google.com/analytics/answer/1009618?hl=en
How to add
a new view: https://support.google.com/analytics/answer/1009714?hl=en
2) 过滤 IP v6,而不是 v4:
Exclude the ipv6 address as mentioned in above post. This is the one
that "what is my ip address" returns. It's not the ipv4 syntax
(xxx.xxx.xxx.xxx) However, I have noticed that wired machines that
stay connected seem to keep the same ipv6 IP (the 31 digit sequence),
however wireless accounts (mobile phones, tablets) tend to be dynamic.
However, as posted above if you use just the first 15 digits of the
sequence and use the "begins with" filter type, it will block
the devices using the same shared router (ie. internet router in your
home)
关于仅过滤前 15 位数字:
我认为它是为了过滤前四个块,所以如果您的 IPv6 看起来像 2601:191:c001:2f9:5c5a:1c20:61b6:675a
,然后过滤 IP that begins with
2601:191:c001:2f9:
.
找到信息 here。
我知道以前有过类似的问题,但是我试过很多网上给出的解决方案都无济于事。我只是无法在我的 Django 网站上隐藏 Google 分析的内部流量。
我正在从管理->查看->过滤器中设置过滤器。已尝试使用固定 IP 和正则表达式模式进行预定义和自定义。 (是的,我已经从 whatismyip.com 仔细检查了我的 IP,我使用的是正确的 IP)
我在某处读到过滤器需要时间才能生效,所以即使等了 24 小时,我仍然看到很多内部流量。
Google 当我从内部 IP 访问页面时,Tag Assistant 也在跟踪它们(不确定它是否应该知道过滤器)
不确定我哪里出错了。
(我正在使用反向代理,但希望这不会改变任何东西,因为 google 分析代码在客户端是 运行)
不要在默认视图(称为 'All Website Data')上使用任何过滤器。创建一个单独的视图,然后在其上创建一个过滤器。那行得通。
(经过几天的努力,this 回复帮助我解决了上述问题)
我也为此苦苦挣扎,所以这就是我的发现。
请注意,实时报告最多可能需要 2 小时才能赶上并反映分析配置更改,例如添加过滤器。
可能的解决方案
1) 按照其他答案中的建议,将默认视图保留为默认视图并为过滤器创建一个附加视图:
The default view collects all traffic. You need to create a new view for which you can apply your filter. Check out item 3 here https://support.google.com/analytics/answer/1009618?hl=en
How to add a new view: https://support.google.com/analytics/answer/1009714?hl=en
2) 过滤 IP v6,而不是 v4:
Exclude the ipv6 address as mentioned in above post. This is the one that "what is my ip address" returns. It's not the ipv4 syntax (xxx.xxx.xxx.xxx) However, I have noticed that wired machines that stay connected seem to keep the same ipv6 IP (the 31 digit sequence), however wireless accounts (mobile phones, tablets) tend to be dynamic. However, as posted above if you use just the first 15 digits of the sequence and use the "begins with" filter type, it will block the devices using the same shared router (ie. internet router in your home)
关于仅过滤前 15 位数字:
我认为它是为了过滤前四个块,所以如果您的 IPv6 看起来像 2601:191:c001:2f9:5c5a:1c20:61b6:675a
,然后过滤 IP that begins with
2601:191:c001:2f9:
.
找到信息 here。