Decide whether query categories are exclusive before summing them. If several regex rules can match one query, preserve all matches for diagnosis and use an explicit priority policy for a mutually exclusive reporting total. Do not let spreadsheet column order become an undocumented taxonomy.
A branded query can also contain an integration term, a pricing modifier, and a support word. Those labels may all be useful. The error is reporting their overlapping click totals as though they divide one population into non-overlapping parts.
Choose The Reporting Question First
For an intent breakdown, the team might want one primary category per available query row. For content planning, it might want several topic labels. Keep those outputs separate: a primary category for additive reporting and multi-label tags for exploration.
The brand-demand segmentation guide builds a vocabulary. This method adds execution rules when that vocabulary overlaps with other patterns. A good keyword list does not by itself define which category wins a collision.
Freeze the raw input, source configuration, metric, date range, and export method. Search Console's performance overview describes site search-performance analysis; exported query rows represent the available dataset under that source's rules, not a complete census of all market searches.
Write A Rule Register
For each rule, record identifier, purpose, pattern, flags, matching engine, priority, positive fixtures, negative fixtures, and owner. Engine matters: a pattern accepted by a local scripting language may use syntax unsupported by another reporting interface.
Specify whether matching searches anywhere in the text or must cover the entire string. Explain whitespace, case, Unicode, punctuation, and missing-value handling. Do not lowercase or strip the only retained copy of the original query; preserve raw text alongside the normalized analysis value.
A separate normalization version helps identify changes. Removing punctuation may make an ordinary phrase resemble a product name. If the business needs that transformation, document why it is appropriate and test the new collisions it creates.
Define Priority In Buyer Terms
Consider a hypothetical taxonomy with support-navigation first, own-brand evaluation second, integration research third, other category fourth, and unresolved last. That order is an invented reporting policy, not a universal intent hierarchy.
If a query names the product and asks for login help, the support rule wins. The same query may retain brand and integration tags in the diagnostic all-match field, but only its primary support assignment contributes to the exclusive total.
Have the business owner approve the distinction. Support activity may be commercially important while belonging outside an acquisition comparison. A different decision could require a different priority order; preserve that as a new taxonomy version rather than quietly rewriting history.
Reconcile A Hypothetical Collision
Imagine three fictional exported query rows. “North Ledger login” has ten clicks, “North Ledger API pricing” has twenty, and “workflow API guide” has thirty. The fictional brand is North Ledger.
A brand rule matches the first two rows, totaling thirty clicks. An API rule matches the second and third, totaling fifty. A login rule matches the first, totaling ten. Adding these independent labels yields ninety clicks, even though the three rows contain only sixty clicks.
Under the declared exclusive priority, support receives ten, brand evaluation twenty, and integration research thirty. The total is sixty. The twenty-click overlap between brand and API remains available in the diagnostic matches, but it does not become additional traffic.
This arithmetic describes the invented rows only. It does not establish intent for every real query containing login or API. Ambiguous cases still need review.
Use An Explicit Assignment Algorithm
For every input row, evaluate all enabled rules and store the matching rule IDs. Select the first matching rule under the approved ordered priority. If none matches, assign unmatched; if the row lacks usable query text, assign unavailable rather than pretending it matched a generic category.
Keep manual overrides in a separate controlled table with reason, reviewer, effective version, and source row reference. Do not bury exceptions inside a larger regex that no reviewer can explain. The all-match field makes it possible to see what the automatic rule would otherwise have done.
This is an original algorithm specification, not a claim that Search Console provides an ordered classifier. Implement it in the approved analysis environment and test its actual matching behavior there.
Build Boundary Fixtures That Catch Real Mistakes
Include an exact brand phrase, a similar generic phrase, punctuation around the name, a former product alias, a brand-plus-support query, a brand-plus-competitor query, and a blank or withheld query field. Specify expected all-matches and primary assignment before execution.
Add the known collision from the hypothetical example. A test that checks only one clean query per category will not detect double counting. Test how a rule change affects rows already assigned to other categories.
For a common-word brand, do not automatically classify every occurrence as branded. Maintain an ambiguous category or an explicit qualification rule. The goal is a defensible available-row taxonomy, not a forced certainty about every searcher's purpose.
Version Changes Without Fabricating Growth
If the team adds an alias or moves support below brand in priority, rerun comparable historical available rows where permitted and feasible. Show the old and new definitions on the same frozen input before interpreting the difference as demand growth.
For example, moving the ten-click login row into brand would raise that exclusive category from twenty to thirty clicks in the fictional dataset. The fifty-percent increase comes entirely from classification policy; no underlying query or click changed.
Use the worked-example checking method to verify these bridges. Keep unresolved or privacy-protected data outside named-query inference. The query reconciliation guide explains why row coverage may remain incomplete even after the classifier is internally consistent.
Release A Reconciled Classification
Before publishing, confirm that every eligible input row has exactly one primary assignment, category counts sum to the input under the chosen additive metric, manual overrides are visible, and the all-match diagnostics retain collisions. State unavailable coverage separately.
Save the rule register, fixtures, version, source extraction, reconciliation, and approved interpretation. Then use the categories for the intended content decision. An exclusive total is useful because it is explicit about its rules, not because regex can read a searcher's mind.
