Issue Writing an API Advanced Filter: Site Directories (Categories)
My site has several editorial categories, and GA allows me to parse site content by these categories:
I am also able to further filter this data (unique pageviews btw) with an advanced filter in GA:
I want to pull this same segment of people (unique pageviews who visited pages within the "/fashion/" category) into Google Sheets so that I can manipulate the data -- but I'm struggling figuring out how to write this Advanced Filter correctly.
I have tried to figure out the correct regex for the filter, but nothing returns the correct values. For the Custom Dimension, Query Explorer revealed to me that this is written as "ga:dimension1."
Does anyone know what I might use for the filter? Thank you sincerely for any help.
Re: Issue Writing an API Advanced Filter: Site Directories (Categories
image upload is broken for everyone, unfortunately
Ok fetching a report with a filter should be done as:
This is for your case where you say Dimension one exactly matches Fashion.
Other operators are available regex contains or not and more.
Other question is do you already have a custom segment created so you want to pull data for it? Or you just wany to pull data for users which were exposed to a specific value of CD1?