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

Automate Meta Ads Creative Generation and Uploading

Automate Meta Ads Creative Generation and Uploading

Featured
Markifact
Markifact

Verified Sponsor

Verified Sponsor

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

Verified Sponsor
New Brand tab launched in Google Merchant Center for enhanced brand control

New Brand tab launched in Google Merchant Center for enhanced brand control

Google tests replacing I’m Feeling Lucky button with AI Mode feature

Google tests replacing I’m Feeling Lucky button with AI Mode feature

Google Updates Image SEO Best Practices to Recommend Consistent URLs for Images

Google Updates Image SEO Best Practices to Recommend Consistent URLs for Images

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 Unveils Generative AI for 3D Product Visualizations in Online Shopping

Google Unveils Generative AI for 3D Product Visualizations in Online Shopping

Google
Google

Official Source

Official Source

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

Official Source
Google Search Detects 20 Times More Scams with New AI Detection Technology

Google Search Detects 20 Times More Scams with New AI Detection Technology

Google
Google

Official Source

Official Source

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

Official Source
Google Lighthouse Audits Transition to Performance Insight Audits with Major Changes

Google Lighthouse Audits Transition to Performance Insight Audits with Major Changes

Chrome for Developers
Chrome for Developers

Official Source

Official Source

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

Official Source
Google corrects Google News crawler documentation error regarding publisher preferences

Google corrects Google News crawler documentation error regarding publisher preferences

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

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
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
Sembot logo

Sembot

Maximize ROI with AI-driven marketing automation

Ad Management
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