Parker Software Ltd Homepage
Forum Home Forum Home > WhosOn Live Chat > Hosted Service
  New Posts New Posts RSS Feed - The Best Way To Embed The Tracking Code
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

The Best Way To Embed The Tracking Code - Event Date: 18 Sep 2006 - 18 Sep 2006

 Post Reply Post Reply
Stephen View Drop Down
Admin Group
Admin Group

Joined: 21 Oct 2005
Location: Stoke on Trent
Points: 1454
Post Options Post Options   Thanks (0) Thanks(0)   Quote Stephen Quote  Post ReplyReply Direct Link To This Post Calendar Event: The Best Way To Embed The Tracking Code
    Posted: 18 Sep 2006 at 9:30am
The recommended way of embedding the WhosOn code into your pages is to place the code just before the end BODY tag (the </BODY>). This will ensure that your page has fully loaded before the WhosOn code is called.

This has two benefits.
1. It means that when a visitor appears in WhosOn you can be sure they viewing the full page.
2. It ensures that your pages are not effected in any way if the WhosOn server is not running.

You can then position the 'click to chat' graphic on your page using a <DIV> tag.

For example:

<DIV style="position: absolute; left: 700px; top: 46px; width:168px; height:17px" id="whoson_live_help">
<script type='text/javascript' src='http://{whosonserver}/include.js?'></script>
<script type='text/javascript' >
if(typeof sWOTrackPage=='function')sWOTrackPage();

Here the code is at the end of the page before the </BODY> tag, but we are showing the Chat graphic at position 700 pixels left, 46 pixels top.

The other advantage of using a DIV to set the position is that most modern web page editors let you move the DIV block around your page using the mouse.. and you can easiliy move the graphic over existing page elements.


Edited by Stephen - 06 Nov 2009 at 9:20am
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.05
Copyright ©2001-2016 Web Wiz Ltd.

This page was generated in 0.434 seconds.