Highlighted

document.write() does not work in DTM

nelya_melnikova

15-10-2015

Hi!

i have two page load rules in DTM:

  1. Top of page with Sequential Javascript / Third Party Tags
  2. Bottom of page with Sequential Javascript / Third Party Tags

i have added header code before other js and footer code just before </body> in all pages. But on some pages it works great, on other pages document.write() do not work:

loadScriptSync: function(t) { n.write('<script src="' + t + '"></script>') }

Safari always ignores this call of document.write() with no error messages:

n.write('<script src="' + t + '"></script>')

Chrome writes in Console:

["document.write(): ""<script src="http://localhost:4502/....-54084b41577e9caf39000082-staging.js"></script>"removefunction]

 

Can you advise me something? 

Replies