How to enable jsonld for all product pages?

Tourist
6 2 2

Read carefully, a very tricky situation.

 

I was using google tag manager to put jsonld code and use custom variable to enable schema to all product pages(not just only one product page)

 

But when I tested on google structure markup helper, I got to knew that shopify already had jsonld code of product type schema on every product pages, but with many empty feilds like price availability , rating etc.

 

So I cannot put schema through google tag manager as two schema codes would conflict with each other. But at the same time I want to use dynamics variable feature of google tag manager to implement schema to all product pages.

 

 

Can this dynamic variable operation be done with shopify product liquid code section.??

Any code which do the same as google tag manager does, and also fill empty items of price ,ratings etc.

Please help.

0 Likes