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

Marketing Workflows Powered by AI

Marketing Workflows Powered by AI

Featured
Markifact
Markifact

Verified Sponsor

Verified Sponsor

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

Verified Sponsor
Google to Drop Support for Special Announcement Structured Data by July 2025

Google to Drop Support for Special Announcement Structured Data by July 2025

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 to Redirect Country Code Domains to Google.com Trending ️‍πŸ”₯

Google to Redirect Country Code Domains to Google.com

Google
Google

Official Source

Official Source

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

Official Source
Google Expands Availability for Structured Data Carousels in EEA Countries

Google Expands Availability for Structured Data Carousels in EEA Countries

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 Search Console API Adds Support for Hourly Data Trending ️‍πŸ”₯

Google Search Console API Adds Support for Hourly Data

Google Search Central
Google Search Central

Official Source

Official Source

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

Official Source
Google Discover will expand to desktop

Google Discover will expand to desktop

Google updates Merchant Center rules affecting product listings and shipping attributes

Google updates Merchant Center rules affecting product listings and shipping attributes

Google
Google

Official Source

Official Source

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

Official Source
Google Search Console Renames Shopping Tab Report to Merchant Opportunities

Google Search Console Renames Shopping Tab Report to Merchant Opportunities

Google Search Central
Google Search Central

Official Source

Official Source

Google Search Central 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