JSON-LD Placement
Unanswered
Northeast Congo Lion posted this in #help-forum
Northeast Congo LionOP
Im using next js 16.0.7 (app router) . I add JSON-LD at page level . The schema is generating inside body not inside head . Is it okay ? If not how to place schema inside head ?
6 Replies
Northeast Congo LionOP
Please help.
@Northeast Congo Lion Im using next js 16.0.7 (app router) . I add JSON-LD at page level . The schema is generating inside body not inside head . Is it okay ? If not how to place schema inside head ?
yeah it can be body - google does recommend head for stylistic purposes but i dont believe it makes any difference
(note: ive used it in body a few times and google has indeed used my data)
and yeah the way react/nextjs app dir works, you i dont think have easy access to edit stiff statically in head
@riský and yeah the way react/nextjs app dir works, you i dont think have easy access to edit stiff statically in head
Northeast Congo LionOP
yeah using app router i think there is no direct way to puth dynamic schema at head . thanks for your answer.
if only nextjs made
export const ldjson or extended the export const metadata one lol