Google Analytics Reporting API Dimension Filter regex

878 views Asked by At

I am trying to create a dimension filter which will return only pagePaths that contain a numeric followed by .html.

To filter for a specific number, I can use: &filters=ga:[email protected]

However, I would like to filter for any number.html

I have tried using a regex expression (with a ~), but I don't think that I have the syntax correct. Any help could be greatly appreciated.

Eric

1

There are 1 answers

0
dikesh On

Your syntax is not correct. Here is how it should be:

filters=ga:pagePath=~[0-9]+.html$