Is this the right way to go about adding a dynamic next/head element? I’ve tried but doesn’t seem to work.
It looks like you need to use dangerouslySetInnerHTML to render your code: https://react.dev/reference/react-dom/components/common#dangerously-setting-the-inner-html