ColdFusion integration code

From ClickTale Wiki
Jump to: navigation, search
ClickTale Wiki
The instructions on this page are intended for self service and online accounts.
Enterprise customers should contact their account managers for integration support.

The ColdFusion integration code allows you to record dynamic pages and pages behind a login using the FetchFromWithCookies method.

This code will enable to get the data stored in session cookies, which helps identify your visitors (and changes the content of parts of your site accordingly). Instead of the bottom part of the tracking code, please place the following code:

<!-- ClickTale Bottom part -->
<div id="ClickTaleDiv" style="display: none;"></div>
<script type="text/javascript">
if(document.location.protocol!='https:')
  document.write(unescape("%3Cscript%20src='http://s.clicktale.net/WRb.js'%20type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
ClickTaleFetchFromWithCookies.setFromCookie("CFID");
ClickTaleFetchFromWithCookies.setFromCookie("CFTOKEN");
// add similar line for each additional cookie variable
 
ClickTaleFetchFrom = ClickTaleFetchFromWithCookies.constructFetchFromUrl();
 
if(typeof ClickTale=='function') ClickTale([!YOUR PARAMETERS!]);
</script>
<!-- ClickTale end of Bottom part -->

Please note:

  • This code is not https/SSL compliant. To enable the recording of https pages (available to premium subscribers) you need to generate an https/SSL tracking code for your project and augment that code's bottom part similarly to the code appearing here.
  • After
ClickTaleFetchFromWithCookies.setFromCookie("CFTOKEN");
more lines in the form of:
ClickTaleFetchFromWithCookies.setFromCookie("[!COOKIENAME!]");
are probably needed, where [!COOKIENAME!] is the name of other session cookies required to properly identify your website visitors.
Personal tools