Open Graph, Metadata Hygiene, and Stable Anchors for Deep Linking
By Lukas Richter, Senior Content Automation Strategist
A page can be useful and still be hard for an assistant to find, identify, or cite well. The fix is not a secret “AI metadata” trick. It is a small set of clear signals: a title that says what the page covers, one consistent URL for that page, and section links that keep working after edits.
These signals do different jobs. Metadata can help a system understand and label a page. A canonical URL can point to the preferred version. An anchor can take a reader to a specific section.
Three jobs: discovery, identity, and landing
Think of deep-link citations as three steps:
- Discovery: Can the assistant or search system access the page?
- Identity: Can it tell which URL is the main version?
- Landing: If it links to a section, does that section still exist and open in the right place?
Access comes first. OpenAI says OAI-SearchBot is used to surface websites in ChatGPT search. Google says pages must be indexed and eligible to appear with a snippet to be shown in its AI search features. Metadata cannot make up for a blocked crawler or an inaccessible page. OpenAI crawler documentation (developers.openai.com) Google’s AI features guidance (developers.google.com)
An October 10, 2026 preprint found that assistants retrieve candidate pages but cite only some of them. The preprint on AI citation behavior (arxiv.org)
Fix pages that do not answer the question before polishing their metadata.
Metadata that helps a page make sense
Write one clear title
Keep the HTML <title>, visible <h1>, and og:title focused on the same page topic. They do not have to be word-for-word copies, but they should not promise different things.
Google says it may use the <title>, the visible page title, headings, og:title, page text, and links to create its search-result title. It may also rewrite an inaccurate title. Make the title match the page. Google’s title-link documentation (developers.google.com)
A useful title names the topic and, where possible, the reader’s task:
- Clear: “Open Graph Metadata and Stable Anchors for Deep Links”
- Less clear: “The Tiny Metadata Mistake That Could Cost You Everything”
The second title creates suspense but says little about what the page will explain. Curiosity is not the same as a useful label.
Give the meta description a real job
Write a short, specific summary of that page. Do not cram it with keywords or reuse the same description on every post.
Google says it usually builds search snippets from page content, but may use the meta description when it gives a better summary. Snippets can also vary by search query. Write the description as a useful preview. Google’s snippet guidance (developers.google.com)
Choose one canonical URL
The canonical URL is the preferred address for a page when similar copies or URL variations exist. Google treats a canonical tag as a hint, not a command, and may choose a different URL. Still, giving crawlers and linkers one clear choice is better than scattering signals across tracking URLs, old paths, and alternate versions. Google’s canonicalization guidance (developers.google.com)
Use the same clean page URL in:
- The
rel="canonical"tag - Open Graph’s
og:url - Your sitemap
- Your internal links
Keep the page’s canonical URL fragment-free. Put #section-id on the deep link that needs to open a section, not on the page’s main identity. The Open Graph protocol describes og:url as the object’s permanent graph ID. Use it for consistent page identity. Open Graph protocol (ogp.me)
Keep Open Graph tags consistent
Open Graph tags help describe a page as a shareable object. The protocol’s required fields include og:title, og:type, og:image, and og:url. It also defines og:description as a short description. Google may consider og:title when building its search-result title. Open Graph protocol (ogp.me) Google’s title-link documentation (developers.google.com)
Here is a simple pattern:
<head>
<title>Open Graph Metadata and Stable Anchors for Deep Links</title>
<meta name="description" content="Learn how clear metadata, one canonical URL, and stable section IDs make deep links easier to identify and use.">
<link rel="canonical" href="https://example.com/guides/open-graph-deep-links/">
<meta property="og:type" content="article">
<meta property="og:title" content="Open Graph Metadata and Stable Anchors for Deep Links">
<meta property="og:description" content="Learn how clear metadata, one canonical URL, and stable section IDs make deep links easier to identify and use.">
<meta property="og:url" content="https://example.com/guides/open-graph-deep-links/">
<meta property="og:image" content="https://example.com/images/open-graph-deep-links.png">
</head>
Do shorter, fact-forward titles beat clickbait?
Match the title to the question people ask. Shorter titles alone do not earn more assistant citations.
The October 10, 2026 preprint compared pages on the same websites across two markets. It found that better title-to-query match was associated with more citations overall. But the engine results differed: title match was associated with more citations from Gemini and Perplexity, while the study found no clear title-match effect for ChatGPT. The study also found no reliable effect from title length. The citation-behavior preprint (arxiv.org)
A September 2026 industry report covering 1,000 searches also found that its short-title results did not hold up consistently in repeat tests. The report’s methodology and findings (getomnipresence.com)
Make the title accurate and relevant first.
Here are four ways to write that title, with length and tone side by side:
| Style | Example title |
|---|---|
| Short, fact-forward | Open Graph and Stable Anchors for Deep Links |
| Longer, fact-forward | Open Graph Metadata, Canonical URLs, and Stable Anchors for Assistant Deep Links |
| Short, curiosity-led | The Open Graph Mistake Behind Broken Deep Links |
| Longer, curiosity-led | The Open Graph and Anchor-ID Mistakes That May Be Costing You AI Citations |
The curiosity-led titles should still be truthful. Do not promise a problem or result the article does not support.
For a useful test:
- Use comparable pages. Assign title styles to matched pages on the same site. Do not publish duplicate copies of one article just to test wording; duplicate URLs muddy the test.
- Change only the title package. Keep each page’s content, meta description, canonical URL, and target query set stable. Keep the
<title>,<h1>, andog:titlealigned so the page does not send mixed signals. - Wait until the change is visible to crawlers. Search systems may take time to recrawl and process a page. Google says title-link changes can take days to weeks to appear. Google’s title-link documentation (developers.google.com)
- Run the same prompts more than once. Log the assistant, prompt, date, and cited URL. Answers can change between runs, so one result is not a verdict. The September report also found that repeated answers often did not cite the same pages. The report’s limitations (getomnipresence.com)
- Track two outcomes separately: how often the page is cited, and how often a citation points to a working section fragment. Also track clicks separately; a title that gets attention is not automatically a title that earns citations.
- If you have only one page, treat a title swap as a pilot. Change one version at a time and confirm the new title has been recrawled before comparing results. That is useful evidence for your own site, but not a clean causal test.
Make anchor IDs durable
A URL fragment such as #canonical-url points a browser to an element with that ID. The HTML standard requires IDs to be unique in their document and forbids whitespace in an ID. It allows many forms, but a simple readable naming style is easier for people to copy and maintain. WHATWG HTML Standard (html.spec.whatwg.org)
Use these rules:
- Choose an ID for the section’s meaning, not its current heading text:
canonical-url, nothow-canonical-urls-work. - Use lowercase words separated by hyphens. Avoid spaces, punctuation, and auto-numbered IDs such as
section-4. - Write IDs explicitly. Do not let a tool silently regenerate them every time an editor changes a heading.
- Keep old public IDs when headings change. If an ID must change, leave a compatible alias at the old location and update known links.
- Do not reuse an ID elsewhere on the page.
- Make the target visible. Avoid linking to text hidden in a collapsed panel or an element removed during page loading.
- Test the link after JavaScript loads. A script that removes the hash or forces the page back to the top can break a deep link.
The Google guidance for “Read more” deep links also advises keeping the target content visible and not removing the fragment during page load. Google’s snippet and deep-link guidance (developers.google.com)
Example:
<section id="canonical-url">
<h2>Canonical URLs: choose one page identity</h2>
<p>Use one preferred URL for the page and keep it consistent.</p>
</section>
<a href="https://example.com/guides/open-graph-deep-links/#canonical-url">
How to choose a canonical URL
</a>
The fragment makes the section easier to open and verify. It does not turn that section into a separate canonical page. Google generally does not use URL fragments to change a page’s content for search indexing. Google’s URL structure guidance (developers.google.com)
Keep section links working after edits
Treat public anchor IDs as part of the page’s link contract. A heading can change; a link people already shared should not quietly stop working.
After a heading edit, open its old section link and check that it lands in the right place. If you already use Playwright, check the canonical URL, og:url, public IDs, and fragment links automatically. Playwright supports toBeInViewport() and locator.evaluateAll() for these checks. Playwright assertions (playwright.dev) Playwright locator documentation (playwright.dev)
import { test, expect } from "@playwright/test";
const articleUrl = "http://127.0.0.1:3000/guides/open-graph-deep-links/"; const publicAnchorIds = ["metadata-hygiene", "canonical-url", "stable-anchor-ids"];
test("page URLs and anchors work", async ({ page }) => {
await page.goto(`${articleUrl}#canonical-url`);
const canonical = await page.locator('link[rel="canonical"]').getAttribute("href");
const ogUrl = await page.locator('meta[property="og:url"]').getAttribute("content");
expect(new URL(canonical, articleUrl).href).toBe(new URL(articleUrl).href);
expect(new URL(ogUrl, articleUrl).href).toBe(new URL(canonical, articleUrl).href);
for (const id of publicAnchorIds) await expect(page.locator(`#${id}`)).toHaveCount(1);
await expect(page.locator("#canonical-url")).toBeInViewport();
});
Keep publicAnchorIds in version control and review any proposed removal like a change to a public API. Add a separate check for same-page links whose fragments do not match an ID. For large sites, run these checks automatically on published pages.
Build the small system, not a metadata ritual
A good content workflow can draft a page title and description from an approved brief, then run checks for missing metadata, mismatched URLs, duplicate IDs, and broken fragments. The system should catch mistakes; it should not invent a claim the article cannot support.
AutoPod’s Creator, Audience, and Taste inputs guide each article’s point of view. Use it to turn research into articles and podcast episodes; check URLs and section links before publishing.
Auto