Guide

Your JSON-LD may only exist in your browser: how to check

Updated

If your structured data is added by JavaScript, by Google Tag Manager or by a widget, it only exists once scripts have run in a browser. Google renders pages and can process it. Most AI crawlers do not run JavaScript, so for them the JSON-LD is simply not there. Checking takes two minutes: compare the page source with the page after scripts.

Written by Mattéo Springmann, who makes Lumi GEO, the Chrome extension mentioned at the end. Everything below works without it. Facts checked on November 12, 2026 in Google's and Next.js's documentation and in Vercel's measurements (sources at the bottom).

Why JSON-LD can be invisible to AI crawlers

There are two versions of every page: the HTML the server sends, and the page after the browser has run its scripts. JSON-LD added by a script only lives in the second one.

  • Google renders pages, and its documentation says: "Google Search can understand and process structured data that's available in the DOM when it renders the page." Tag Manager and custom JavaScript are both covered.
  • Most AI crawlers read only the HTML the server sends. Vercel and MERJ measured it in December 2024: none of the major AI crawlers rendered JavaScript.
  • Link preview bots read the raw HTML too.

So a page can show valid structured data in Google's tools and send none to ChatGPT's or Claude's crawlers.

Where script-only JSON-LD usually comes from

  • A Google Tag Manager "Custom HTML" tag that writes the JSON-LD.
  • A review or rating widget that adds its own markup after loading.
  • A single-page app that sets the <head> from JavaScript (each route then has its JSON-LD only in the browser).
  • A plugin or theme setting that injects schema client-side instead of printing it in the template.

The 2-minute check

  1. Open the page in Chrome and press Ctrl+U (Cmd+Option+U on a Mac) to see the page source, the HTML the server sent.
  2. Press Ctrl+F and search for application/ld+json. Count the blocks you find.
  3. Now count them after scripts: press F12, open the Console tab and run the line below.
document.querySelectorAll('script[type="application/ld+json"]').length

Same number: your JSON-LD is in the HTML. More blocks in the console than in the source: the extra ones are added by JavaScript, and crawlers that do not run it never see them.

The trap: Google's test says "eligible"

Google's documentation tells you to test JavaScript-generated structured data with the Rich Results Test, which renders the page first. So "Page is eligible for rich results" proves that Google can see the markup after rendering. It does not prove the markup is in the HTML your server sends. Use the page-source check above for that.

The fix: print the JSON-LD in the server's HTML

  1. Theme or template. Write the <script type="application/ld+json"> block in the page template, filled by the server with the page's real values.
  2. CMS plugin. Use a setting or plugin that prints the schema in the HTML, then confirm with the page-source check.
  3. Google Tag Manager. Keep Tag Manager for tracking, and move the JSON-LD into the template.
  4. Next.js. The Next.js documentation recommends rendering JSON-LD "as a <script> tag in your layout.js or page.js components", and escaping < in the JSON so it cannot close the tag.
  5. A single-page app. Pre-render the routes so each one gets its own HTML: see the React SPA guide.

Whatever the method, keep the structured data in line with what visitors see. Google lists "making sure your structured data matches the visible text on the page" among the SEO basics that also apply to its AI features.

What JSON-LD will and will not do

Structured data describes a page in a form machines can parse: who publishes it, what product or article it is, the answers in an FAQ. Google uses it for rich results. The Next.js documentation says JSON-LD can be used by search engines and AI to understand a page; none of the AI crawler documentation I checked (OpenAI, Anthropic, Perplexity) says how, or whether, its crawlers use it. Treat it as a clear description of your page, not as a way to get cited.

Checking it in one click (the tool I make)

Lumi GEO, the free Chrome extension I make, counts the JSON-LD blocks in the raw HTML and after scripts and shows the difference ("1/3 blocks in the raw HTML"). It also reads Microdata and RDFa and checks the required fields of each type. Get it on the Chrome Web Store.

Frequently asked questions

Can Google read JSON-LD added with JavaScript?

Yes. Google's documentation says Google Search can process structured data that is available in the DOM when it renders the page, including markup added with Google Tag Manager.

Can ChatGPT see JSON-LD added by Google Tag Manager?

Most likely not. Tag Manager adds the markup with JavaScript, and Vercel's December 2024 measurements found that the major AI crawlers did not run JavaScript.

How do I know if my structured data is in the HTML?

Search the page source (Ctrl+U) for application/ld+json and compare the count with the number of blocks the browser console finds after scripts have run.

Sources (checked on November 12, 2026)