Stop Intellichat with cookies
Disable Intellichat With Cookies
Intellichat has various ways in which you can disable the chat box from launching. Already built into the system, is the ability to have the chat popup once per period. This period can be set by your account manage to be anything from once per second to once per month.
To further extend the functionality of intellichat we have created a new method which can be called to set our cookies.
This cookie will disable intellichat from launching for a specific campaign, in addition, only a very basic javascript will be returned for the normal launch pixel to ensure customers will not be waiting for intellichat to pre-load.
Cookie LifeTime
There are 5 different time types to set the intellichat cookies by, these times will set the expiration date on the cookie. After the cookie expires the intellichat chat window will be able to launch again.
Parameters
Param Name: expire_type
Param Values:
- seconds
- minutes
- hours
- days
- epoch
Param Name: expires
Param Value: Number of 'expire_type' until the cookie expires.
-
Expire In Seconds / Minutes / Hours / Days
To expire the cookie after x seconds, you will need to set the expire_type param to 'seconds' and the expires param to the number of seconds you wish the cookie to last for.
<script type="text/javascript" src="https://www.intellichat.com/tracking/setCookie.php?cid=CAMPAIGN_ID&expire_type=seconds&expires=100"></script>If you wish to expire the cookie by a different time, e.g. minutes, you simply need to change the expire_type param.
-
Expire by Epoch
The epoch expiration type is slightly different. You need to set an exact expiration date, which would be a standard unix timestamp. This can easily be done in php using the strtotime() function.
<script type="text/javascript" src="https://www.intellichat.com/tracking/setCookie.php?cid=CAMPAIGN_ID&expire_type=epoch&expires=<?php echo strtotime('1st December 2012'); ?>"></script>You can find more information about unix time on Wikipedia on the Unix Time page: http://en.wikipedia.org/wiki/Unix_time
Cookie Types
There are 3 different types of the set cookie code. These 3 methods of calling the code are:
-
Script Include
The script include simply has no output and just sets the cookie on the users browser. This can be called in the following way.
<script type="text/javascript" src="https://www.intellichat.com/tracking/setCookie.php?cid=CAMPAIGN_ID&ADDITIONAL_PARAMS"></script> -
Image Include
If you just wish to include a blank image onto your page, just add the following code.
<img src="https://www.intellichat.com/tracking/setCookie.php?type=pixel&cid=CAMPAIGN_ID&ADDITIONAL_PARAMS" width="1" height="1" border="0" /> -
Header Redirect
The header redirect version of the script will simply redirect the user to whatever url you specify within the redirect parameter. All you need to do is redirect your customers to the script.
<a href="https://www.intellichat.com/tracking/setCookie.php?cid=CAMPAIGN_ID&ADDITIONAL_PARAMS&redirect=http://www.google.com">Set Intellichat Cookie</a>Please Note, you must url encode the redirect parameter within the url.
Intellichat is trusted by:
Loading...