dcsimg

SDC Javascript tag does not fire correctly in Internet Explorer

Products

Webtrends Analytics 8.x
Webtrends Analytics 9.x

Cause


The Webtrends JavaScript tag is implemented with include files. The include files appear to load properly, but the tag does not fire off a hit to the SDC when viewing client activity with utilities like httpwatch or Fiddler. No error messages appear. Using the code in the include files will generate a hit if implemented inline on an HTML page. This affects Internet Explorer versions 6,7, and 8. Firefox is unaffected.

Resolution

The include call is not being closed “properly” for IE.
i.e.
<script type=”text/javascript” src=”/wt_includefile.js” />
You will need to hard close the call.
i.e.
<script type=”text/javascript” src=”/wt_includefile.js”></script>

More Information

This close method will also cause problems if used for <meta> tags.
i.e. <meta name=”blah” content=”blah_again” />
This should be closed like this:
i.e. <meta name=”blah” content=”blah_again”>

Although this method of closing XML style tags with “/>” is a commonly accepted standard, Internet Explorer does not recognize it as valid.