Internal Search Mapper
Match site search terms to the page H1 that fits each one best, split into exact and partial matches.
This tool needs the old Universal Analytics (pre-GA4) data format. It may still work with historical UA exports, but it does not work with GA4.
#about
Shows which existing page best fits each term people type into your site search, and which terms only match loosely, a sign of possible content gaps.
A Python script matches terms from a Google Analytics (Universal Analytics) search terms export to page H1s from a Screaming Frog crawl using PolyFuzz TF-IDF.
Exact matches (similarity 1.0) and partial matches come out as separate CSVs.
Streamlit app
- Platform
- Browser-based (no installation required)
- Input
- GA internal search exportScreaming Frog crawl CSV
- Output
- CSVs with exact and partial search matches
- Category
- E-commerce
Use cases
- Identifying products or content users search for but cannot find
- Improving internal site search by adding redirects
- Planning new landing pages based on user demand
- Understanding user intent and terminology
#features
- TF-IDF fuzzy matching via PolyFuzz library
- Exact and partial match separation (similarity scores)
- Automatic non-indexable page filtering
- Deduplication keeping highest search volume instances
- Results sorted by Total Unique Searches
#how-to-use
- Export GA internal search report as Excel
- Export Screaming Frog crawl with H1 and indexability columns
- Upload both files to the tool
- Run TF-IDF matching against indexable page H1s
- Download three CSVs: exact matches, partial matches, and combined results
#faq
- What exact export formats does it expect?
- Two files: the Google Analytics site search terms report as Excel (the script reads a sheet named Dataset1; the Streamlit app falls back to the first sheet if that name is missing), and a Screaming Frog crawl CSV. The script needs the columns H1-1, Address and Indexability from internal_html.csv; the app lets you map any search term, H1 and URL columns from dropdowns.
- Does this work with GA4?
- It was built around the Universal Analytics Behavior > Site Search > Search Terms export, and the script hardcodes UA column names like Search Term and Total Unique Searches. In the Streamlit app you can map any column as the search term, so a GA4 view_search_results export works if you shape it into a spreadsheet first, but the volume-based sorting only kicks in if a column name contains 'search' plus 'unique' or 'volume'.
- What does it actually match against?
- Page H1s only, not URLs or title tags. Search terms and H1s are lowercased and matched with PolyFuzz TF-IDF, and each search term gets exactly one best-matching H1. The readme recommends crawling just your category pages, otherwise terms will happily map to blog posts or product pages.
- How are non-indexable pages excluded?
- Rows where the Indexability column equals exactly 'Non-Indexable' are dropped before matching. If your crawl export lacks that column (the app skips the filter silently in that case) or uses different wording, non-indexable URLs will appear as match targets.
- Why do some search terms disappear from the results?
- Duplicates are removed keeping one row per search term, and results are deduplicated after sorting by search volume so the highest-volume instance survives. In the app there is also a minimum similarity slider (default 0.5), so terms whose best H1 match scores below the threshold are filtered out entirely; lower the slider to see them.
/contact
Want me to run this for you? I run this tool as a managed service, or build something custom around your data. You get the insights without touching the code.