Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › GA4 Filters not working as expected
-
GA4 Filters not working as expected
Posted by Akanksha on 2 April 2024 at 7:32 amSo, I had to create subproperty for multiple geographies. Like Australia, India for the website. One subproperty I had to create which shows cumulative pages for APAC Region. So I used the filter for the subproperty “Page path matches regex (?:en_au|ja_jp|zh_cn|en_in|en_apc)\/ “. I can in pages that it is giving the views but only for 1 subdirectory
Akanksha replied 8 months, 2 weeks ago 2 Members · 7 Replies -
7 Replies
-
Like this
/zh_cn/ 3794
/en_in/ 3786
/en_apc/ 3770
/ja_jp/ 3512
/en_au/ 2382
-
Hi Akansha,
Let me rephrase the requirement again for clarity.
You want to use regular expression filter that includes cumulative page views for regions as specified by strings in
en_au|ja_jp|zh_cn|en_in|en_apc
And you want it page wise . e.g.
- “/en_au/3213/page1”
- “/ja_jp/3123/page2”
- “/zh_cn/512/page3”
- “/en_in/4141/page4”
- “/en_apc/144/page5”
And so on ..
If my above understanding is correct for the requirement , please try the following Regex :
(?:en_au|ja_jp|zh_cn|en_in|en_apc).*
.*: Matches any character (.) zero or more times (*). This part of the regex ensures that the rest of the page path is captured after the specified string.
-
Yes. I want when I see all pages report, it should come with full URLs like:
1,848(3.43%)
1,658(3.08%)
1,622(3.01%)
http://www..xyz.com/en_in/products/seating/office-chairs/
1,471(2.73%) – like this full url
xyz.com
.xyz Domain Names | Join Generation XYZ
.xyz is for every website, everywhere.® We offer the most flexible and affordable domain names to create choice for the next generation of internet users.
-
And also, the same thing we have applied in GA-U, it was successfully implemented. The only difference was that we used filter as “URI pattern matches” but in GA4 we don’t have URI option in filter
-
Path component is just a subset of the URI, therefore, theoretically the regex you applied would serve the same purpose.
To further investigate the issue, Please send a screenshot of both :
1. The urls you’re getting in the GA4 interface2. The regex you have applied from subproperty.
Also , the actual url of the website will be helpful in understanding the issue.
-
-
Thanks for the reply!
This is the way I want the URLs to come for APAC region, same way we have done it Universal GA, it worked with URI filter : https://drive.google.com/file/d/1v0DIAsWCIJ4Nx6uo1DiFTz-XD9bqjMwg/view?usp=sharing
This how I am getting in GA4. Only cumulative values for all the regions not pagewise. https://drive.google.com/file/d/151c_yfnz1SOfAIuG-pP2U5QPuQwreIyB/view?usp=sharing
https://drive.google.com/file/d/1DTAlauUspNLUVtjyYtrQTbI99c0cOBIR/view?usp=sharing This is the filter that I have put and I am getting the above result. The regex suggestion you gave I tried that too, it didn’t work
- This reply was modified 8 months, 2 weeks ago by Akanksha.
Log in to reply.