I need to generate a custom html tag that runs a specific javascript, and passes custom attributes to it. Something like: <script src="https://consent.cookiebot.com/uc.js" data-cbid="some-numbers" data-blockingmode="auto" type="text/javascript"></script>
I use as trigger DOM ready, and this tag needs to be at head start as first, so top priority.
Problem is, the Tag gets fired but no attributes is passed. In my DOM i just get: <script src="https://consent.cookiebot.com/uc.js" type="text/javascript"></script>
and obviously the javascript fails.
Any tipps why the custom attributes are discarded?