Google Warns Against Using JavaScript for Structured Data in Merchant Center

June 20, 2024 at 1:43:52 PM

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.

Want Personalized Digital Marketing Insights at Your Preferred Time?

Our Smart Newsletter brings you the latest insights on the topics you love, delivered at your preferred time and frequency.

Discover More

TikTok Users Can Now Download Videos without Watermark

TikTok Users Can Now Download Videos without Watermark

Looker Studio to Add Native Microsoft Excel Connector

Looker Studio to Add Native Microsoft Excel Connector

Sean Zinsmeister
Sean Zinsmeister

Official Source

Official Source

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

Official Source
BigQuery Now Allows Drag-and-Drop Tabs

BigQuery Now Allows Drag-and-Drop Tabs

Google Cloud
Google Cloud

Official Source

Official Source

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

Official Source
Google Ads Updates Gambling and Games Policy to Include Lottery-Courier Ads in 33 States

Google Ads Updates Gambling and Games Policy to Include Lottery-Courier Ads in 33 States

Google
Google

Official Source

Official Source

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

Official Source
Microsoft Ads Launches Property Center and Global Lodging Campaigns

Microsoft Ads Launches Property Center and Global Lodging Campaigns

Microsoft Advertising
Microsoft Advertising

Official Source

Official Source

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

Official Source
Google Merchant Center Broadens Conversion Tracking Scope Trending ️‍🔥

Google Merchant Center Broadens Conversion Tracking Scope

Google
Google

Official Source

Official Source

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

Official Source