Skip to main content

getSeoMeta

Generate a Remix meta array from one or more SEO configuration objects. Pass SEO configuration for the parent route(s) and the current route to preserve meta data for all active routes. Similar to Object.assign(), each property is overwritten based on the object order. The exception is jsonLd, which is preserved so that each route has it's own independent jsonLd meta data. Learn more about how SEO works in Hydrogen.

Anchor to seoInputs
seoInputs
[]
required

getSeoMeta takes an arbitrary number of configuration object parameters. Values in each object are overwritten based on the object order. `jsonLd` properties are preserved between each configuration object.


Was this page helpful?