JavaScript detected

I've been using the same template for an emailer for the last few months with no problems but this time it has given me the following problem:

JavaScript detected     
Almost every popular email client and spam filter does not support JavaScript. Your campaign will either be filtered as spam, or will display a security warning to your recipients. We recommend removing all JavaScript code from your campaign and then re-import it.

can anyone help me out and find out what has changed/what i need to remove or change? Struggling to detect what is different. My emailer can be found at:

I'd appreciate any advice amd help ASAP. Thanks all bloggers. You are all life savers.



Diana Diana, 6 years ago

Hi Andy,

At the bottom of the code there is this:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "' type='text/javascript'%3E%3C/script%3E"));
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-11533819-1");
} catch(err) {}</script>

That's what you need to remove to get rid of the error and the scripting.

D. Potter
Campaign Monitor

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free