...
Paste your code from Step 1 into the HTML field (1)
CheckSupport document.write (2)>>> Step 2 is not necessary, as a new module for rendering user-defined HTML tags is now available in Google Tag Manager. This new module also supports calls to “document.write()”.Set Tag firing priority to 1000 (3) in Advanced Settings
Set Triggering to All Pages (4)
...