Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

document.write() does not work in DTM

Avatar

Avatar
Level 1
nelya_melnikova
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
nelya_melnikova
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
nelya_melnikova
Level 1

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

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

337 likes

Total Posts

2,286 posts

Correct Reply

815 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

337 likes

Total Posts

2,286 posts

Correct Reply

815 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

19-06-2017

If you're still experiencing this error, please contact Customer Care