Product details are added by JavaScript
The product markup or text is added by scripts, so shopping crawlers and AI tools that read only the HTML may miss it.
Why it matters #
Google renders JavaScript, so it may still read markup and text that scripts add, though later than the HTML. Many AI shopping tools and other crawlers read only the HTML as served, so they see no product name, price or stock.
Google Search Central also warns that Product markup made by JavaScript can make shopping crawls less frequent and less reliable, which matters for prices and stock that change often.
How to fix it #
Print the product name, price, stock and the Product JSON-LD in the HTML from the server. On headless shops, use server-side rendering or static pages for product pages.
Compare the served HTML with the browser using the JavaScript SEO Checker, then check again with the Product Page Checker.
What it looks like, and fixed #
<script>
fetch('/api/products/123').then(r => r.json()).then(p => {
const s = document.createElement('script');
s.type = 'application/ld+json';
s.textContent = JSON.stringify(p.schema);
document.head.appendChild(s);
});
</script>
The Product markup only exists after the script runs, so HTML-only crawlers never see it.
<script type="application/ld+json">
{"@context": "https://schema.org", "@type": "Product", "name": "Oak garden bench",
"offers": {"@type": "Offer", "price": "199.00", "priceCurrency": "GBP",
"availability": "https://schema.org/InStock"}}
</script>
The server prints the markup in the HTML, together with the visible name, price and stock.
Fix it with your AI assistant #
Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.
Help me make product details visible in the HTML on [the page address] of my shop [your website address], built with [your platform, e.g. a headless Next.js shop]. A checker says the Product markup or text is added by JavaScript, so shopping crawlers and AI tools that read only the HTML may miss it. First, compare the raw HTML (run "curl -s [the page address]" or ask me to paste View Source) with the rendered page, and list what exists only after scripts run: product name, price, stock, description, JSON-LD. Tell me which script, app or tag adds each one. Then give me the fix: print the Product JSON-LD, name, price and stock in the served HTML from the same data. Rules: keep one Product block; remove the script-added markup once the server version works; keep page addresses the same; and back up or use a branch. Give exact code and where it goes. Finally, tell me to re-check with the URSY.com Product Page Checker at ursy.com/product-page-checker/.
We find the problems, and help you fix them
- Check Run a free tool or the full audit.
- Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
- Re-check Come back, check again, and watch each fix turn green.
Fix it on your platform #
WordPress
Markup added through a tag manager or a script-based plugin is added by JavaScript. Prefer markup printed by WooCommerce or your SEO plugin in the page itself.
Shopify
Put Product markup in the theme's product template in Liquid, not in a tag manager or a script added by an app. Headless shops should render product pages on the server.
A hand-made site
For headless or app-style shops, use server-side rendering or static pages for product pages, so the JSON-LD and text are in the served HTML.
Check it is fixed #
Run the JavaScript SEO Checker to confirm the served HTML holds the product details, then the Product Page Checker: it should no longer say the markup is added by JavaScript.
Official source #
Google Search Central: Generate structured data with JavaScript
Questions #
Google renders JavaScript, so why does this matter?
Google may render later than it reads the HTML, and warns that script-made Product markup can make shopping crawls less reliable. Many AI shopping tools read only the HTML.
Is a tag manager fine for markup?
It works for crawlers that render, but it is still JavaScript. For prices and stock that change often, server-printed markup is more reliable.
More problems in Online shops and products
- Product images are missing, broken or too small High priority
- Product links do not work High priority
- Product markup is missing key fields High priority
- Products in the feed break the feed rules High priority
- The price or stock in the markup does not match the page High priority
- The product feed cannot be read properly High priority
- Delivery, returns and stock are not clear Medium priority
- Details UK rules ask shops to show are missing Medium priority