How to render type="application/ld+json" schema in header?
Unanswered
Welsh Sheepdog posted this in #help-forum
Welsh SheepdogOP
I want to render idJSON script schema in header, Script helper helps to render script in header, but can't render script body, only links works.
How to do that?
Ty.
How to do that?
Ty.
1 Reply
@Welsh Sheepdog I want to render idJSON script schema in header, Script helper helps to render script in header, but can't render script body, only links works.
How to do that?
Ty.
Northeast Congo Lion
Hey I just had a similar problem solved with
Important thing here is the beforeInteractive this will inject it in the <Head>
<Script
type="application/ld+json"
strategy="beforeInteractive"
dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}
/>Important thing here is the beforeInteractive this will inject it in the <Head>