Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Analytics filter - hostname including directory?

I have a regex filter set up on an analytics profile to only include data from a specific subdomain:

^subdomain\.domain\.com

This works well. Problem is, that the admin section for this site is under a different subdomain. I don't want to include all traffic from the other subdomain in this profile, only the data for admin sections relating to this profile. For example, I want to add a filter to to the original profile to include traffic from:

othersubdomain.domain.com/admin/edit/

Should this still be a hostname filter? Any help with direction / regex would be greatly appreciated.

Hope this makes sense

like image 747
Jackson Avatar asked Feb 01 '26 09:02

Jackson


1 Answers

If your system accepts logical "or" operator |, then use

^subdomain\.domain\.com|^othersubdomain\.domain\.com/admin/edit/
like image 171
Ωmega Avatar answered Feb 03 '26 00:02

Ωmega



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!