Mobile app version of vmapp.org
Login or Join
Phylliss660

: 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.

@Phylliss660

Posted in: #Html #RichSnippets #StructuredData

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?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Phylliss660

3 Comments

Sorted by latest first Latest Oldest Best

 

@Ann8826881

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>

10% popularity Vote Up Vote Down


 

@Cugini213

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.

10% popularity Vote Up Vote Down


 

@Smith883

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme