Appending a tracking script with jQuery
<p>I have this action tag that needs to appear on the page after a form submission:</p>

<pre><code>&lt;script&gt;document.write('&lt;s' + 'cript language="JavaScript" src="http://view.atdmt.com/jaction/***"&gt;&lt;/s' + 'cript&gt;')&lt;/script&gt;&lt;noscript&gt;&lt;iframe src="http://view.atdmt.com/iaction/***" width="1" height="1" frameborder="0" scrolling="No" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0"&gt;&lt;/iframe&gt;&lt;/noscript&gt;
</code></pre>

<p>When I add this directly to the header, it shows up, and seems to work, however, when I try to add this with jQuery I get "Transferring data from view.atdmt.com" and a never-ending blank loading screen. This is my jQuery (If you run this in your console, you can see what I'm talking about):</p>

<pre><code>$("head").append('&lt;script&gt;document.write(\'&lt;s\' + \'cript language="JavaScript" src="http://view.atdmt.com/jaction/***"&gt;&lt;/s\' + \'cript&gt;\')&lt;/script&gt;' + '&lt;noscript&gt;&lt;iframe src="http://view.atdmt.com/iaction/***" width="1" height="1" frameborder="0" scrolling="No" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0"&gt;&lt;/iframe&gt;&lt;/noscript&gt;');
</code></pre>
