: Alternate places to put structured data I am going to be putting some products structured data onto my site, however I cannot access the HTML of an individual page due to the CMS I am using.
I am going to be putting some products structured data onto my site, however I cannot access the HTML of an individual page due to the CMS I am using.
So my question is this; Where can I place this product structured data on my page without adding it into the back-end HTML or the head of a page?
The only other option would be to add it into the site-wide product page HTML so that it appears on every page, however this wouldn't work very well as every page has different products with different prices etc.
Does anyone have any solutions or had a similar problem before?
More posts by @Phylliss660
3 Comments
Sorted by latest first Latest Oldest Best
As you can add HTML as content, you can provide structured data.
It would be possible with all three supported syntaxes (JSON-LD, Microdata, RDFa), but when you can’t mark up your existing HTML elements, using Microdata/RDFa doesn’t really make sense (you would have to add hidden/empty elements). So JSON-LD seems to be the best option here.
You don’t have to add the script element to the head, you can add it to the body, too.
<body>
<p>…</p>
<script type="application/ld+json"></script>
<p>…</p>
</body>
If you're able to add Tag Manager to the site-wide template and each product's info has identical xpaths/IDs/classes, you can push this data to the datalayer by capturing the values with a JavaScript.
I find not being in control of the HTML of your own site due to its CMS entirely bizarre. Get a different CMS. Even better, tell us what this CMS is so we can all avoid it like the plague.
Look into JSON-LD though I'm still not sure this solves the problem cause you need to inject it as a script element in the head.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.