Reputation: 121
When trying to save a filter to a GA dashboard widget I am getting the error message 'Unexpected error. please try again later'.
The widget I am having a problem with is the 'show landing pages for Facebook referrals' widget. Here are the parameters I set...
Display the following columns: Page title Unique pageviews
Filter this data: Only show 'Social source referral' Exactly matching Yes Only show 'Social network' Exactly matching Facebook
Up to this point I can save the widget.
Now...its the following filter that is causing the problem.
Only show 'Page' Regular expression twwdcqgfk1|u0evfggft91b|u0qpgfgfgy64z|u2lfgfgfhrnsg1|u4d5aerwwrhoz|u6mwwwrr39tiz|u8tr5hfs2st5z
The above is only a sample of the ids, I use about 450 ids in the regular expression field. When I use this filter on other widgets in the same dashboard and in widgets of other dashboards it works fine but on a few I get the error when trying to save 'Unexpected error. please try again later'.
If I just use two ids in the regular expression field i.e. u4d5aerwwrhoz|u6mwwwrr39tiz I can save the widget with the 'page' filter - however if I add more than two ids that's I cannot save.
I can't figure it out, i've tried saving this filter using multiple browsers, on different pc's, at different times but I cant get it to work.
Any ideas?
Thanks
Upvotes: 0
Views: 1516
Reputation: 3317
the reason why the report won't work is quite simple :-)
Regular Expressions — You can also use regular expressions in filter expressions using the =~ and !~ operators. Their syntax is similar to Perl regular expressions and have these additional rules: Maximum length of 128 characters — Regular expressions longer than 128 characters result in a 400 Bad Request status code returned from the server.
The workaround from my experience is to use API and run several queries so that you can stay within the limits. But it's pain in the ass...
If there is some simpler pattern -- I checked and all of the posted IDs have 13 characters, so maybe you could use regular expression checking the number of characters. Something like:
.*\?^facebookAdId=.{13}$/
The curly brackets are the way to check the number of occurrences. This could probably help.
Upvotes: 1