Advertisement
  1. SEJ
  2.  ⋅ 
  3. News

Google Advises Against Using Tag Manager to Implement Structured Data

Google Advises Against Using Tag Manager to Implement Structured Data

Google’s John Mueller advises SEOs not to implement structured data using Google Tag Manager.

While this is something that technically can be done, it’s better to embed structured data directly on the page.

The topic of adding structured data via Google Tag Manager has come up before, but it seems SEOs aren’t getting the message.

Over the past week alone I’ve noticed Mueller address the topic twice on Reddit and once on Twitter.

His advice is always the same: You can add structured data with Google Tag Manager, but you shouldn’t.

Why?

As Mueller explains, Google’s algorithms only use structured data when it’s visible on the page.

“On-page SEO should really be visible — it’s hard for Google’s algorithms to give something appropriate weight if we determine that it’s never visible. For example, when adding structured data, our goal is to only use it when we see that it’s visible on the page.”

Mueller echoed his own advice when the topic came up on Twitter yesterday.

Note that Google’s own structured data testing tool can’t read the markup when it’s implemented via Google Tag Manager.

Barry Adams responded saying the best solution is to include it in the page’s HTML.

Mueller seconded Adams’ response:

Earlier in the week, Mueller gave a similar response on Reddit. If you want the structured data to be used, make it easy for Google to see it.

“Yes! I’d strongly recommend implementing them directly, rather than relying on JavaScript to embed them. Make it as easy as possible to get to this data, if you want it to be used.”

So, there you have it. Don’t use Google Tag Manager to implement structured data. At least not if you want Google to read it.

If Google can’t read it, what’s the point of it being there at all?

More Resources

Category News SEO
ADVERTISEMENT
SEJ STAFF Matt G. Southern Senior News Writer at Search Engine Journal

Matt G. Southern, Senior News Writer, has been with Search Engine Journal since 2013. With a bachelor’s degree in communications, ...