Problem enabling New Relic Browser - “Copy/Paste Javascript Code” - Error

I created the javascript using the steps and validated that the javascript is valid however, when i add this javascript into the header (we do not have the regular Doc HTML header). We use Nuxt framework and Vue.js and the header itself does not allow Script/Text Type content.
We have to use innerHTML where the Javascript generated by NewRElic Browser is pasted.