Google Warns Against Using JavaScript for Structured Data in Merchant Center

June 20, 2024 at 1:43:52 PM

TL;DR Google's Merchant Center advises adding structured data directly to the HTML source rather than using JavaScript post-page load, as it complicates processing. While Google can handle JavaScript-generated data, it often causes quality and consistency issues. Ryan Levering from Google clarified that both Google Search Central and Merchant Center guidelines are correct but need better wording. He cautioned against re-implementing websites if they currently work.

Google Warns Against Using JavaScript for Structured Data in Merchant Center

Google Merchant Center's structured data documentation advises adding structured data to the HTML source and not generating it post-page load using JavaScript. This doesn't mean Google can't process JavaScript-generated structured data, but it complicates the process. Jarno van Driel highlighted this on LinkedIn, questioning the discrepancy between Google Search Central and Google Merchant Center documentation.

Ryan Levering from Google clarified that both documents are technically correct, but the wording needs adjustment. He advised against re-implementing websites if they currently work, noting that Google Merchant Center crawlers can process JavaScript-generated data but often encounter quality and inconsistency issues. For example, discrepancies can arise when prices are updated via JavaScript after the initial HTML load.

Levering explained that the recommendation to avoid JavaScript for structured data in Google Merchant Center documentation was to ensure consistency across systems. However, he acknowledged that it's not entirely accurate to say JavaScript should never be used for structured data.

In summary, while JavaScript can be used for structured data, it is generally more reliable to include it in the original HTML source to avoid potential issues.

Have more questions on this topic? Ask our AI assistant for in-depth insights.

The Only Digital Marketing Feed You'll Ever Need.

Stay informed your way. Tailored updates when and how you want them. 100% Free.

10,000+ Users

500+ Sources

1000+ Tools

Or

Related Posts

Google Discontinues AI While Browsing Feature

Google Discontinues AI While Browsing Feature

Google for Developers
Google for Developers

Official Source

Official Source

Google for Developers is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Google Completes March 2025 Core Update Rollout in 14 Days

Google Completes March 2025 Core Update Rollout in 14 Days

Google
Google

Official Source

Official Source

Google is a Official Source. The source has been verified by Swipe Insight team.

Official Source
AI marketing workflows made simple

AI marketing workflows made simple

Featured
Markifact
Markifact

Verified Sponsor

Verified Sponsor

Markifact is a Verified Sponsor. Want to get featured here? Contact us.

Verified Sponsor
Google updates paid click reporting in Merchant Center to align with Google Ads

Google updates paid click reporting in Merchant Center to align with Google Ads

Claude introduces web search for real-time information and accurate responses Trending ️‍πŸ”₯

Claude introduces web search for real-time information and accurate responses

Anthropic
Anthropic

Official Source

Official Source

Anthropic is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Google Expands Education Q&A Carousel to Include Spanish and Vietnamese Languages

Google Expands Education Q&A Carousel to Include Spanish and Vietnamese Languages

Google for Developers
Google for Developers

Official Source

Official Source

Google for Developers is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Google Adds Required returnPolicyCountry Field to Return Policy Examples

Google Adds Required returnPolicyCountry Field to Return Policy Examples

Google for Developers
Google for Developers

Official Source

Official Source

Google for Developers is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Google Now Updates Googlebot IP List Daily Instead of Weekly

Google Now Updates Googlebot IP List Daily Instead of Weekly

Gary Illyes
Gary Illyes

Official Source

Official Source

Gary Illyes is a Official Source. The source has been verified by Swipe Insight team.

Official Source

Related Tools

Markifact logo

Markifact

Verified Tool

Verified Tool

Markifact is a Verified Tool. Want to get this badge? Contact us.

Verified Tool

Marketing Workflows Powered by AI

Featured
Marketing Auditor logo

Marketing Auditor

Verified Tool

Verified Tool

Marketing Auditor is a Verified Tool. Want to get this badge? Contact us.

Verified Tool

Automated audits for Google Ads and Analytics.

Get Featured Here

Showcase your tool in this list.

Contact Us
Sembot logo

Sembot

Maximize ROI with AI-driven marketing automation

Ad Management
Ahrefs logo

Ahrefs

SEO tools to boost traffic and rank higher

SEO
Surfer SEO logo

Surfer SEO

SEO content creation and optimization made easy

SEO
Sitebulb logo

Sitebulb

Efficient website crawler for better SEO audits

SEO
Screpy logo

Screpy

AI-Powered SEO and Web Analysis Simplified

SEO
Blogify logo

Blogify

Convert multimedia to SEO-optimized blogs fast

SEO
GoDataFeed logo

GoDataFeed

Optimize and manage product feeds across channels

Feed Management
Feedonomics logo

Feedonomics

Optimize and sync product data for more sales

Feed Management

Get Featured Here

Showcase your tool in this list.

Contact Us