OG meta tag support for og:price:[amount/currency] #75798
-
For our project we have a requirement to support og:price:amount and og:price:currency meta tags. Trying to set them by
As of |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
This is all enabled by React. So the question is, does React support this? Yes, since React 19, and AFAIK, in canaries used in Next 14, https://react.dev/reference/react-dom/components/meta So you could add them manually, as you need. |
Beta Was this translation helpful? Give feedback.
-
@icyJoseph, Greetings. Some clarification: I cannot add this manually on the layout layer within head due to the project/folder structure. This data about the product is dynamic and should be set on server. I can do this on the Page layer, but generateMetadata doesn’t provide this opportunity for these specific metatags, are there any other instruments to set this into the head from Page layer on server? |
Beta Was this translation helpful? Give feedback.
Yes, just add a
<meta>
tag, wherever. Please see the examples in the link I shared, https://react.dev/reference/react-dom/components/meta#annotating-the-document-with-metadata