Compare keyword and search-term match codes in Google Ads

Read keyword and search-term match codes separately. Check which clicks came from AI Max and which need investigation.

Performance creative2 min read

A Google Ads click arrives with ValueTrack values keyword_match=b and term_match=p. Both values can be right. The broad keyword triggered the ad, and Google classified its match to this search term as phrase. Keep the two values in separate columns before grouping your traffic.

Record both values

Use {matchtype} for the matched keyword's setting and {search_term_matchtype} for how the search term matched. {keyword} gives the matched keyword, so it does not reveal what the shopper typed. For a tracking template on a destination with no existing query, this example uses short output names:

Plain text
{lpurl}?keyword_match={matchtype}&term_match={search_term_matchtype}

Inspect the effective template first and preserve its other required parameters. The example starts a new query with ?. Adapt the template to the existing URL and tracking setup before saving. Google's ValueTrack examples

Compare four rows

For a florist's Search campaign, use these sample values to check your report grouping. The last row represents missing data.

Keyword matchTerm matchGroup to use
bpStandard keyword traffic
baAI Max expansion with a matched keyword
aaAI Max keywordless traffic
bMissingUnknown

For the standard group, require both fields to contain a documented standard value: e (exact), p (phrase) or b (broad). A filter like “term match is not a” can accidentally include blank or unfamiliar values. In the keywordless row, Google can leave {keyword} empty. Add {targetid} if you need to distinguish a keyword criterion from a keywordless target. Google’s match-code reference

Test the four rows in your report before using the groups to compare performance. If real records still come in without a match code, inspect the effective URL setup, the redirect and the tracked record. A landing page that opens confirms the destination, but the tracking record tells you which values arrived. For the underlying keyword setting, check the Search terms report.

Marketing workflow
All guides
Compare keyword and search-term match codes in Google Ads | Formatry Media — Formatry