Does Squarespace still have issues with adding Schema through Tag Manager?
-
I see in a forum posting from 2016 that Squarespace had issues with adding custom code via body tags, and am trying to troubleshoot some schema I've added via GTM using JSON-LD and Yoast's converter tool to a Squarespace website. Is the general consensus to still add JSON-LD script directly into the head? And if so, where?
-
Hey there! To be honest, I haven't tried adding schema markup through GTM. I always recommend developers hard code their schema markup into their pages.
As far as placement of the markup is concerned, it depends: if you're adding Organization or _Website _markup (or even LocalBusiness), I'd recommend you add this markup to the tags of your page, so that crawlers see it right away. However, if you have an e-commerce site and want to add Product markup to the items you're selling, that markup should appear where your product (or its reviews) appears (usually in the tags).
Hope this makes sense. Here to help if you have follow up questions!
-
Thanks, Zee! I'd love to keep this discussion open for anyone who has worked with GTM. Curious to know more about the pros/cons from other perspectives.