The problem of using javascript for structured data on websites


A recent study has found a problem for websites that depend on JavaScript for structured data. Data, often in JSON-LD, are difficult to be accessible for AI-bots if they are not found in the weekend HTML. Bots such as Gptbot (Chatgpt used), Claudebot and Perplexitybot, cannot perform JavaScript and miss any structured data added later. This creates challenges for websites that use tools, such as Google Tag Manager (GTM), to insert Json-Ld on the client's side, since many AI-Bottes cannot read dynamically generated content.
Elie Berreby, founder SEM King, explored what happens when JSON-LD is added with Google Tag Manager (GTM) without rendering on the server side (SSR). He found out why this type of structured data often does not see AI-bot.
- Вання Provide availability of structured data for all bots to avoid problems with AI search.
- ✅ Use rendering on the server side (SSR): Play the pages on the server to enable structured data on the Outgoing HTML Data.
- ✅ Use the marking scheme directly to HTML to reduce JavaScript addiction.
- Вати offer pre-played pages where JavaScript has already been made by giving the BTS fully played HTML Danish.
💡 Tip: These approaches meet Google recommendations for HTML -based development and important content, such as structured data, to the server output.
Статтю згенеровано з використанням ШІ на основі зазначеного матеріалу, відредаговано та перевірено автором вручну для точності та корисності.
https://www.searchenginejournal.com/ai-search-optimization-make-your-structured-data-accessible/537843/