How to Block Spam Referrers like darodar.com from Accessing Website?

前端 未结 14 2404
北海茫月
北海茫月 2020-11-22 16:22

I have several websites that get daily around 5% of visits from spam referrers. There is one strange things I noticed about this referrers: they show in Google Analytics, bu

14条回答
  •  醉梦人生
    2020-11-22 17:20

    I think that the most effective way to avoid ghost spam is to add a custom dimension that let you know the site was indeed visited, because as we know they never visit the site.

    ga('set', 'dimension1', "Hey I'm really here!!");
    ga('send', 'pageview');

    You should simply add this lines in your pages and then add a filter to "include" only when the dimension has the expected value ("Hey I'm really here!!") in this case

提交回复
热议问题