![]() |
Asynchronous Tracking Code |
Post Reply
|
| Author | ||
James Horton
Admin Group
Technical Support Joined: 01 Jun 2009 Location: Stoke-on-Trent Posts: 277 |
Post Options
Quote Reply
Topic: Asynchronous Tracking CodePosted: 06 Dec 2011 at 11:03am |
|
|
The following code is fully asynchronous and doesn't require jQuery, however it is very complex. This is so that the load of your page is not dependent on the load of your WhosOn server, say for instance if there is a service interruption or you maintenance is being performed on the service, this does not affect your site load. It should go into the Head of the HTML document for your pages. Make sure to replace the gateway.whoson.com value and the www.domain.com from the example below to suit your own gateway and domain.
You will need to add a HTML tag to Body. Otherwise the script will not work correctly. This will display the click to chat within the Body of your page and that can be done with the following:
Edited by James Horton - 20 Apr 2012 at 9:43am |
||
|
Best Regards,
James Horton Technical Analyst Parker Software |
||
![]() |
||
Joe Bragg
New User
Joined: 23 Mar 2012 Posts: 2 |
Post Options
Quote Reply
Posted: 23 Mar 2012 at 3:42pm |
|
|
Hi James
Thanks for this useful post. Unable to see the function woAfterLoad in out hosted scripts at http://whoson.buyitdirect.co.uk:8080/include.js?domain=www.appliancesdirect.co.uk. Is there something in our settings that needs to be enabled to make this function appear in include.js? Kind Regards Joe |
||
![]() |
||
James Horton
Admin Group
Technical Support Joined: 01 Jun 2009 Location: Stoke-on-Trent Posts: 277 |
Post Options
Quote Reply
Posted: 26 Mar 2012 at 2:31pm |
|
|
Hi Joe,
It actually exists within the Invite.js script and not the Include.js script. If you replace the Include.js with Invite.js you should be able to see this via a text search within the document. It is compressed though, so you may not be able to fully read the document at a glance.
|
||
|
Best Regards,
James Horton Technical Analyst Parker Software |
||
![]() |
||
Joe Bragg
New User
Joined: 23 Mar 2012 Posts: 2 |
Post Options
Quote Reply
Posted: 28 Mar 2012 at 2:43pm |
|
|
works beautifully...thanks James
|
||
![]() |
||
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 |