segmentio / consent-manager

Drop-in consent management plugin for analytics.js
https://segmentio.github.io/consent-manager/
MIT License
341 stars 144 forks source link

ConsentManagerBuilder prevents headers from rendering #254

Closed olabogen closed 2 years ago

olabogen commented 2 years ago

We have a up-to-date Gatsby project where we have added ConsentManagerBuilder in a provider component which is wrapping the app in wrapRootElement in both gatsby-ssr.js and gatsby-browser.js.

Any attempt to render seo meta tags proves impossible as long as it is there.

When we use helmet with the accompanying gatsby plugin or the new Head component export and build the project, they are simply removed from the source or placed in the body tag.

Does anyone have an idea as to how this is possible?