Insert script tags before a div

Gold Contributor
Gold Contributor
Hello, We need to execute a javascript file before/inside a particular div. < script src="http://...myscript.js?param1=utag_data.1&param2=utag_data.2"> < /script> This should go before #customercomments div. I'm able to insert the tags but they do not execute. Any input is appreciated! Thanks, Jeff edit: the system removed my example script tags
2 REPLIES 2

Insert script tags before a div

Employee Emeritus
If this script includes synchronous code (i.e. document.write calls), you will need to place this code in your HTML source at the point where you would like it to execute.

Insert script tags before a div

Gold Contributor
Gold Contributor
It does include document.write calls. We will implement outside of Tealium then. Thank you for answering.
Public