Forum Moderators: DixonJones

Message Too Old, No Replies

Where to put WebTrends Live js code on frameset?

differences in NS & IE

         

Robert Charlton

11:45 pm on Dec 10, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I'm optimizing a site that's requiring me to do some rebuilding as well... and in the process we're adding WebTrends Live. The site has been using GoToast too. Most pages are flat, but some are framed.

GoToast has suggested that, on the framesets, its code be in the head section of each frameset, as well as on the framed content page, because...

a) In Netscape, the frameset doesn't execute javascript, so the code must be on the content page....

b) Internet Explorer, however, looks for javascript in the head of the frameset.

WebTrends Live documentation only suggests putting its tracking code as the last thing within the <body> tags on a page, which doesn't take care of option (b).

Has anyone had experience with this? I need recommendations ASAP.

pageoneresults

12:11 am on Dec 11, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hello Robert, WTL has a knowledgebase that you can search. I came up with this one for deploying the code in framesets...

Configure WebTrends Live to Track Referrers Involving Framed Pages [webtrendslive.com]

Also, you may want to include your tracking script in an include of some sort. Pasting that code at the bottom of every page is going to be tedious. Using an include like a footer and inserting the code after the last bit of html in your footer is the best route.

If you are wanting to validate to the W3C, you'll need to escape the ampersands in the WTL generated code for the <noscript> tag. Don't forget to add an empty alt="" to the 1x1 image that is used in the script.

Robert Charlton

6:51 am on Dec 11, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



p1 - Thanks... After I posted, I spent about a half-hour on hold waiting for WebTrends tech support to see what they had to say.

They didn't mention the knowledge base note at all. We talked mostly about the location of the code, and they weren't sure about all the points I raised, so they're running some tests.

I'll email them about the knowledge base, and I'll let you know what they tell me.