0
votes

My website is running a lot of test pages for specific purposes. Problem is I don't want to count these session and page views in Google Analytics, because we will have lots of false traffic. So I need to block these traffic data in Google Analytics.

Notice 1: Exclude IP filter won't work. We use VPN for these test pages. We also test it anywhere.

Notice 2: Custom Reports or Segment or anything are not recommended here. I know how to do this but don't want to do.

Notice 3: Website is Wordpress but I can't access to edit htaccess or to remove GA analytics.js.

Notice 4: I am able to use Google Tag Manager. Any Tag Manager tips are welcomed.

Thank you.

1
I'm voting to close this question as off-topic because its not programming related may be better suited for webapps.stackexchange.com - DaImTo
Where are you doing the actual reporting? I would honestly suggest that is a better place to put the filtering (e.g. in Google Data Studio) - far more flexible & does not require edit access to the HTML/javascript or (as you say) to .htaccess. Incidentally I don't agree with @DalmTo, this feels like a programming (reporting) matter to me. - MandyShaw
Is the google analytics being called from the Tag Manager? If so, why not just adding exception rules for the trigger? - Shir Gans
MandyShaw, would you guide me through the filter process? Shir Gans, no, analytics.js is added to <head> manually - Brucey
@Brucey It all depends on what reporting mechanism you are using. Is it Google Data Studio (GDS)? If so, you just need to add a GDS filter that omits your test page(s), and apply it to all the relevant controls. If it's another reporting mechanism, you need to identify it for us. - MandyShaw

1 Answers

2
votes

You should use Google Tag Manager and set up rules based on URL in triggers.

UPD In case of hardcoded GA, you can use custom filter in GA View: exclude traffic from Request URLs.