PROFESSIONALLY OPTIMIZED WEBSITES STARTING AT $995
Our team of SEO Web Design gurus are standing by to assist you achieve your online marketing goals.

+1-971-599-3330

info@seowebdesignllc.com

REQUEST QUOTE
SEO Web Design, LLC aims to improve business by delivering effective solutions based on innovative technologies and professional designs. Discover the variety of services we offer and convince yourself on the basis of the latest works that we've done. We love building fresh, unique and usable websites optimized specifically for your niche.

Responsive Web Design

SEO / SEM / Social Media

Conversion Rate Optimization

Email Marketing

Online Presence Analysis

Web Hosting
Top
SEO Web Design / SEO  / New official Google advice on generating structured data with JavaScript

New official Google advice on generating structured data with JavaScript

Google has released a new developer document with advice on generating structured data with JavaScript[1]. It offers more direction on this topic, something SEOs have been seeking for a while from Google. Previously, SEOs, and sometimes even Google, cautioned to shy away from using structured data in JavaScript.

Applications. Google said, “There are different ways to generate structured data with JavaScript, but the most common are using Google Tag Manager and custom JavaScript.” Google Tag Manager is a platform that allows you to manage tags on your website without editing the code. Here is Google’s advice on both methods.

Google Tag Manager. Follow the steps below to add structured data via Google Tag Manager.

  1. Set up and install Google Tag Manager[2] on your site.
  2. Add a new Custom HTML tag to the container.
  3. Paste the desired structured data[3] block into the tag content.
  4. Install the container as shown in the Install Google Tag Manager section of your container’s admin menu.
  5. To add the tag to your website, publish your container in the Google Tag Manager interface.
  6. Test your implementation[4].

Custom JavaScript. You can use JavaScript to generate all of your structured data or use it to add more information to server-side rendered structured data, Google said.

Learn more. We highly recommend you read the full help document over here[5].

Why we care. For some sites, the only way to add structured data is to use JavaScript. Sometimes using Google Tag Manager can help efficiently manage that structured data. Please use Google’s official advice when implementing structured data through JavaScript.


About The Author

Barry Schwartz a Contributing Editor to Search Engine Land and a member of the programming team for SMX events. He owns RustyBrick[6], a NY based web consulting firm. He also runs Search Engine Roundtable[7], a popular search blog on very advanced SEM topics. Barry’s personal blog is named Cartoon Barry[8] and he can be followed on Twitter here.

References

  1. ^ generating structured data with JavaScript (developers.google.com)
  2. ^ Set up and install Google Tag Manager (support.google.com)
  3. ^ the desired structured data (developers.google.com)
  4. ^ Test your implementation (developers.google.com)
  5. ^ full help document over here (developers.google.com)
  6. ^ RustyBrick (www.rustybrick.com)
  7. ^ Search Engine Roundtable (www.seroundtable.com)
  8. ^ Cartoon Barry (www.barryschwartz.org)

Powered by WPeMatico

sel@seowdllc.com

Search Engine Land is the leading industry source for daily, must-read news and in-depth analysis about search engine technology.