Regex limitation

797 views
Skip to first unread message

Duck

unread,
Mar 2, 2011, 9:31:38 AM3/2/11
to google-analytics...@googlegroups.com
Is there a limitation to the regex string we can use as a filter?

Thanks,

A

Emre Baran

unread,
Mar 2, 2011, 10:26:16 AM3/2/11
to google-analytics...@googlegroups.com, Duck
128 Characters.

--
You received this message because you are subscribed to the Google Groups "GA Data Export API" group.
To post to this group, send email to google-analytics...@googlegroups.com.
To unsubscribe from this group, send email to google-analytics-data-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-analytics-data-export-api?hl=en.

David Niu

unread,
Mar 21, 2011, 2:45:08 PM3/21/11
to google-analytics...@googlegroups.com, Duck
Anyone have any ideas for how to query using regular expressions longer than 128 characters?  We routinely need to use longer expressions especially when we need to filter by things like multiple URL's.

We can use these long filters in the Google Analytics Web site with no problem.  When you manually use the GA web site the query length limit appears to be much higher than what the data api allows.

The only approach I see right now is to break the query apart into multiple sub queries, run each sub query individually and then manually mash together the results.  I think this would work but is ugly and defeats much of the purpose with using the API in the first place.

-D

Nick

unread,
Mar 21, 2011, 5:24:42 PM3/21/11
to google-analytics...@googlegroups.com, Duck
Emre is right. The limit is 128 characters for an expression.


-Nick
Reply all
Reply to author
Forward
0 new messages