Site publishing guides

Find Duplicate Titles Before Publishing a Page Template

·

Test a title template with realistic page records before applying it to an entire catalog. Check what happens when a field repeats, contains a comma or is missing.

Programmatic SEO Title Template Tester

Expand the six harbor records

Choose Load worked example, then Test title template. The template is {{service}} in {{city}} | North Pier. Checks use a 25–42 character range and the phrase harbor tours. CSV record numbers include the header as record 1.

The initial result is one pass, four warnings and one error. In title-template-results.json, find the duplicate group with records 2 and 3. Record 6 has no generated title because city is missing.

Expand the six harbor records
RecordResultEvidence
2 and 3DuplicateTwo 34-character Porto titles differ only in case
4Keyword warningThe Oslo title uses Kayak trips
5Length warningThe Newcastle title has 51 characters
6Missing value errorcity is blank
7PassThe Galway title has 35 characters

Open the title template tester and load the harbor example

Review the long title and change severity

Record 5 keeps Newcastle, County Down as one quoted CSV value. Its character preview ends in North Pier’s first letter, followed by an ellipsis. The saved title stays at 51 characters and the preview shows the first 42 plus the ellipsis.

Enable Strict mode and test the same data. The four editorial warnings become errors. The passing Galway title is unchanged. Use the first result table to decide what to change in the template or the source rows.

Open the title template tester and load the harbor exampleGoogle Search Central, how title links are generated and displayed

Choose pipe-separated name=value rows when pasting individual substitutions. If a variable contains a literal pipe, use CSV. The tester collapses whitespace and compares duplicate titles without letter case.

The preview is based on your character threshold and makes no request to a search engine. Google can use headings and other signals to generate a title link, and it truncates displayed text to fit the result width.

Google Search Central, how title links are generated and displayed

Common questions

Can generated titles include braces from the dataset?

Substitution runs once. Braces in a variable value stay as text in the generated title.

Does the keyword check match part of a longer word?

It checks neighboring complete words, ignoring letter case. For example, tour alone does not match tours.

Sources and example

Put it into practice.

Related guides