![]() |
More Advanced Embedding of Code |
Post Reply
|
| Author | ||||
Daniel
Admin Group
Technical Director Joined: 19 Dec 2006 Location: Stoke-on-Trent Posts: 875 |
Post Options
Quote Reply
Topic: More Advanced Embedding of CodePosted: 19 Jul 2010 at 10:46am |
|||
|
Method 1, default: Up side - easiest to use / embed Down side - may slow page slightly due to script
rendering, may cause issue if gateway unavailable.
Method 2 Up side - nearly as easy to do as above, and as good in terms of cross browser support Down side - image can load later, so rendering changes
have to be taken into account still can show loading ... (but after everything else is done).
Method 2.1 Up side - as 2, but helps in case of rendering problems Down side - still can show loading ... (but after
everything else is done).
Method 3 Up side - as 2.1 Down Side - complex
<!-- Embedded WhosOn: Insert the Script below at the bottom of your
page just above the </body> tag --> <script type='text/javascript'
src='http://hostedusa3.whoson.com/include.js?domain=www.testing.com'></script> <!-- add this function call to your body.onload event: --> if (typeof sWOTrackPage == 'function') sWOTrackPage(); Edited by Daniel - 23 Aug 2010 at 5:16pm |
||||
|
Daniel Tallentire
Support Parker Software |
||||
![]() |
||||
Daniel
Admin Group
Technical Director Joined: 19 Dec 2006 Location: Stoke-on-Trent Posts: 875 |
Post Options
Quote Reply
Posted: 23 Aug 2010 at 5:15pm |
|||
|
if you have jquery you can do even a little more.
|
||||
|
Daniel Tallentire
Support Parker Software |
||||
![]() |
||||
Daniel
Admin Group
Technical Director Joined: 19 Dec 2006 Location: Stoke-on-Trent Posts: 875 |
Post Options
Quote Reply
Posted: 02 Nov 2010 at 12:01pm |
|||
|
The following code is fully asynchronous and doesn't require jQuery, however it is very complex.
It should go into the Head of the document.
You will have to add the HTML tag for the whoson_chat_link to place the image with this version of the code.
Edited by James Horton - 27 Oct 2011 at 12:51pm |
||||
|
Daniel Tallentire
Support Parker Software |
||||
![]() |
||||
James Horton
Admin Group
Technical Support Joined: 01 Jun 2009 Location: Stoke-on-Trent Posts: 275 |
Post Options
Quote Reply
Posted: 15 Dec 2010 at 9:26am |
|||
|
This can be useful when you are using a template design and only want to enter the code once in the main template of your page and reserve the chat link for specific pages, such as the Contact Us page: Use the following link code to generate the chat link where you wish it to appear
Embed the following code into your template or master page HTML content within the <body>
Edited by James Horton - 14 Apr 2011 at 5:34pm |
||||
|
Best Regards,
James Horton Technical Analyst Parker Software |
||||
![]() |
||||
James Horton
Admin Group
Technical Support Joined: 01 Jun 2009 Location: Stoke-on-Trent Posts: 275 |
Post Options
Quote Reply
Posted: 28 Apr 2011 at 5:33pm |
|||
|
Wish to control your own behaviour with the JavaScript depending on your operator status? Here is a sample script so that you can do this: Make sure that the 'Display Nothing When Offline' option is used from Options -> Site Properties -> Visitor Chat -> Graphics -> Operator Status.
For example:
Edited by James Horton - 10 Nov 2011 at 2:23pm |
||||
|
Best Regards,
James Horton Technical Analyst Parker Software |
||||
![]() |
||||
Daniel
Admin Group
Technical Director Joined: 19 Dec 2006 Location: Stoke-on-Trent Posts: 875 |
Post Options
Quote Reply
Posted: 29 Sep 2011 at 11:50am |
|||
|
first, insert:
In the page where you want the image to appear. Then:
If you don't want the click to chat, then replace the anchor link above with:
Edited by James Horton - 05 Oct 2011 at 3:55pm |
||||
|
Daniel Tallentire
Support Parker Software |
||||
![]() |
||||
James Horton
Admin Group
Technical Support Joined: 01 Jun 2009 Location: Stoke-on-Trent Posts: 275 |
Post Options
Quote Reply
Posted: 05 Oct 2011 at 3:48pm |
|||
|
We have been having requests for a floating live chat link in the browser window when a visitor is viewing your site, that follows the visitor's scrolling of the page.
This is possible using CSS and we have a sample piece of code that can be placed into the HTML's Body at the bottom of the document. For this to work you will need to make sure that you have an image which is suitable to be presented in the side of your webpage as a floating item. Typically items that are small on width and greater in height. You will also need to make sure that you have set Display Nothing When Offline in your Visitor Chat settings of Site Properties. You will need to set the physical dimensions of the image here in the width and height areas: <div id="liveHelp" style="position: fixed;right: 0px;top: 60px;width: 43px;height: 157px;"> Here is the code you will need:
Edited by James Horton - 05 Oct 2011 at 3:54pm |
||||
|
Best Regards,
James Horton Technical Analyst Parker Software |
||||
![]() |
||||
James Horton
Admin Group
Technical Support Joined: 01 Jun 2009 Location: Stoke-on-Trent Posts: 275 |
Post Options
Quote Reply
Posted: 02 Nov 2011 at 3:42pm |
|||
|
The following example is for when you wish to have a timed event to happen within the tracking code. Say a visitor is to view a particular page for X amount of seconds you then wish for this to perhaps fire a Prospect Detection rule. This is possible by altering the sWOPage variable to something else or perhaps appending a value. In this example we will take the current sWOPage value and append ?timer=true as a query string value. So we are not modifying the current page that the visitor is viewing, but allowing you to then play with the combination of the On Page and Query String value to create a Prospect Rule for visitor detection or to send an invite. This can be useful if you think that a particular page is confusing for a visitor and wish to engage with them view an invite to assist.
The JavaScript timer function setTimeout is what we are using and the number of milliseconds is the length of time that is required before the function is met. 1000 milliseconds is 1 second so 30000 is 30 seconds.
Edited by James Horton - 02 Nov 2011 at 3:43pm |
||||
|
Best Regards,
James Horton Technical Analyst Parker Software |
||||
![]() |
||||
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |