Some users administrate their scripts with the Google Tag Manager. For example, they run a WordPress website with the Google Tag Manager for WordPress plugin.
You can add the Widget script to the Google Tag Manager too.
It is essential to select Support document.write at the tag configuration.