在Google Analytics中删除垃圾邮件推介不再适用于某些推荐人 [英] Removing spam referrals in Google Analytics doesn't work anymore for some referrers

查看:193
本文介绍了在Google Analytics中删除垃圾邮件推介不再适用于某些推荐人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google Analytics中设置了一些过滤器来删除垃圾邮件引荐。它对大多数推介链接都有好处,但自上周以来,有三个网站再次出现。这是什么原因以及如何让它们消失?



过滤器1

  darodar\.com | priceg\.com | semalt\.com | buttons\-for\-website\.com | makemoneyonline\.com | blackhatworth \.com | hulfingtonpost\.com | bestwebsitesawards\.com | simple\-share\-buttons\.com 

过滤器2

  econom \.co | ilovevitaly\.com | ilovevitaly\ .RU | humanorightswatch\.org | free\-share\-buttons\.com | buy\-cheap\-online\.info | domination\.ml | mobiletest\.me |站点2 \.free\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\\  

  Get'\\-Free \-Traffic\-Now\.com | googlsucks\。 COM | theguardlan\.com | quirktools\.com | guardlink\.org | site3\.free\-share\-buttons\.com | site4\.free \\ -share \-buttons\.com 

过滤器4

  Site5 \.free\- share\- buttons \.com | site6\.free\-share \-buttons \.com | event\-tracking\.com | free \-social\-buttons\.com 

以下三个推荐人在Google Analytics中再次出现。




  • www.Get-Free- Traffic-Now.com(过滤3)

  • free-social-buttons.com(过滤器4)

  • www.event-tracking.com(过滤器4)



编辑

有人将此标记为可能的此问题的重复但这不正确。那里的答案建议使用过滤器,但这正是我在过去几个月中一直在做的。其他人建议寻找虚假的主机名,但我只看到有效的主机名,所以没有任何阻止。

解决方案

我发现最好的方法是使用自定义维度作为过滤器。



您的网页上的垃圾邮件不是垃圾邮件,它只是您在另一页上使用的GA代码。

由于垃圾邮件从未在您的网页上,他们无法知道什么维度或如何使用它。

所以..



在您的Javascript代码中添加一个维度:

 < script> 
(function(i,s,o,g,r,a,m){i ['GoogleAnalyticsObject'] = r; i [r] = i [r] || function(){
(i [r] .q = i [r] .q || [])。push(arguments)},i [r] .l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a,m)
})(window,document,'script' , '// www.google-analytics.com/analytics.js','ga');

ga('create',XXXXXXX,'auto');
ga('send','pageview',{
'dimension1':'true'
});

< / script>

这会发送一个值为true的自定义维度。
在Analytics中,将其添加到自定义定义 - >自定义维度中。

然后在包含真实值的情况下对此自定义维度进行INCLUDE筛选。

因此只有具有值真的自定义维度1的数据才会被计数。如果垃圾邮件发现者发现这一点。

然后他们很好: - )



这样你只会在Google Analytics上获得真实的数据,并且没有什么奇怪的referals。

我已经在我的页面上运行了大约一年,并且没有任何奇怪的嘲弄。

我在GA中的所有referals都是真实的referals。


I set up some filters in Google Analytics to remove spam referrals. It works great for the majority of the referral links but since last week, three websites are showing up again. What's the reason for this and how to make them disappear again?

Filter 1

darodar\.com|priceg\.com|semalt\.com|buttons\-for\-website\.com|makemoneyonline\.com|blackhatworth\.com|hulfingtonpost\.com|bestwebsitesawards\.com|simple\-share\-buttons\.com

Filter 2

econom\.co|ilovevitaly\.com|ilovevitaly\.ru|humanorightswatch\.org|free\-share\-buttons\.com|buy\-cheap\-online\.info|domination\.ml|mobiletest\.me|site2\.free\-share\-buttons\.com

Filter 3

Get\-Free\-Traffic\-Now\.com|googlsucks\.com|theguardlan\.com|quirktools\.com|guardlink\.org|site3\.free\-share\-buttons\.com|site4\.free\-share\-buttons\.com

Filter 4

Site5\.free\-share\-buttons\.com|site6\.free\-share\-buttons\.com|event\-tracking\.com|free\-social\-buttons\.com

The following three referrers show up again in Google Analytics.

  • www.Get-Free-Traffic-Now.com (Filter 3)
  • free-social-buttons.com (Filter 4)
  • www.event-tracking.com (Filter 4)

EDIT:

Someone marked this as a possible duplicate of this question but that's not correct. The answer there suggests using filters but that's exactly what I've been doing for the last couple of months. Someone else suggested looking for fake hostnames but I only see the valid one so nothing to block there.

解决方案

The method I found the best was to use custom dimension as the filter.

The "spam" is not spam on your page, it's only your GA-code that is used on a different page.
Since the "spam" is never on your page they can't know what dimension or how to use it.
So..

In your Javascript code add a dimension like:

<script>
   (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
   (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
   m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
   })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

   ga('create', XXXXXXX, 'auto');
   ga('send', 'pageview', {
      'dimension1':  'true'
   });

</script>

This sends a custom dimension with the value "true". In Analytics you add it to the Custom Definitions -> Custom Dimensions.

Then in filtering you INCLUDE on this custom dimension if it contains "true" value.
So only data with a Custom Dimension1 with value "true" is counted. If the spammers finds this out.
Then they are good :-)

This way you will only get true data on Google Analytics and no strange referals.
I have had this running for about a year on my page now and have no strange referals anymore.
All referals I have in GA is true referals.

这篇关于在Google Analytics中删除垃圾邮件推介不再适用于某些推荐人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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