Search code examples
google-analyticsgoogle-api-js-client

pagePathLevel only number GAPI


I have filter

'ga:pagePathLevel1==/post/',

And this back me result as i expected

/post/125/asdd
/post/8784/assd
/post/asdasd/asdsd

But now i want ot filter result and get url only if pagePath2 is number, for example i was try this

'ga:pagePathLevel1==/post/ && ga:pagePathLevel2==/[^0-9]/',

Output should be:

/post/128/asdd
/post/8784/assd

But looks that regax is not good or not allowed here? Output is empty.


Solution

  • For regex match, you need to use =~ instead of ==