• Texas | Arizona | Virginia | Idaho
  • (888) 705-0930
  • info@therawragency.com
Facebook-f Twitter Instagram Linkedin-in
  • Home
  • Who We RAWR
  • Solutions
  • Portfolio
  • Blog
  • Contact
Menu
  • Home
  • Who We RAWR
  • Solutions
  • Portfolio
  • Blog
  • Contact

New official Google advice on generating structured data with JavaScript

Facebook
Twitter
LinkedIn

Google has released a new developer document with advice on generating structured data with JavaScript. 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 on your site.
  2. Add a new Custom HTML tag to the container.
  3. Paste the desired structured data 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.

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.

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.

The post New official Google advice on generating structured data with JavaScript appeared first on Search Engine Land.


Source: IAB

Facebook
Twitter
LinkedIn

Recent Blog Posts

How to use Google Ads Competitive Metrics

July 1, 2022

Twitter’s algorithm ranking factors: A definitive guide

July 1, 2022

What’s the biggest hidden secret in Google Ads?

July 1, 2022

Google rich results guidelines now prohibits weapons, recreational drugs, tobacco & vaping products and gambling-related products

June 30, 2022

How to migrate to Google Analytics 4: A step-by-step guide

June 30, 2022
View More
Facebook-f Twitter Instagram Linkedin-in

Get In Touch

  • Texas | Arizona | Virginia | Idaho
  • (888) 705-0930
  • info@therawragency.com

Latest Blog Post

How to use Google Ads Competitive Metrics

July 1, 2022
View More

Copyright 2022 | The RAWR Agency, LLC. |

Sitemap | Privacy Policy

  • Home
  • Who We RAWR
  • Solutions
  • Portfolio
  • Blog
  • Contact
Menu
  • Home
  • Who We RAWR
  • Solutions
  • Portfolio
  • Blog
  • Contact