Skip to main content

Regex to segment GSC queries by length

HT to Ziggy Shtrosberg (opens in a new tab) for this helpful tip: use a regex to segment GSC queries into buckets based on length. The really long ones are more likely to be from AI search.

Modify these examples as needed:

  • All queries with 5 to 8 words:

◦ ^([^" "]*\s){4,7}[^" "]*$

  • All queries with 20 or more words:

◦ ^([^" "]*\s){19,}[^" "]*$

Tamara
September 17, 2025

An article explains what Google Business Profile Updates do, like building trust and taking more space in local results. Useful when owners ask about SEO.

Tamara
September 17, 2025

Google announced AP2, an open framework that lets AI agents make purchases with user authorization through mandates. More than 60 companies back it.

Tamara
September 17, 2025

Custom channel groups let you rename GA labels like Unassigned and (not set). An article by Dana DiTomaso shows how, so meetings focus on insights.

Tell us what you need help with.