regex - Fail to filtering Spam Referal in Google Analytics -


i see lot of spam referal in google analytics... i'm creating new custom filter , exclude 'hostname' field, regex pattern: .*best\-seo\-(offer|solution)\.com|buttons\-for\-your\-website\.com

but somehow referal still coming up! wrong regex pattern eventhough validate through regexpal.com

any insight ?

filtering hostname exclude sessions occur on domains have same ga tracking code on domain yours. see hostname custom report example.

instead exclude referral traffic adding spam domains referral exclusion list (admin > property > tracking info > referral exclusion list.) unfortunately, can't add regex: have enter each domain separately. more info on referral exclusion list.

this custom report give list of spam domains exclude.

update: i've changed answer previous answer inflate direct traffic.

you should filter out referrals instead of hostname exclude spam referral traffic. when creating filter, make sure have view has no filters on. here's how create filter:

  1. admin > view > filters
  2. + new filter
  3. filter type == custom
  4. exclude, filter field == referral

more info in article.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -