ClickTale Support
http://forums.clicktale.com/

Classic ASP integration code
http://forums.clicktale.com/viewtopic.php?f=5&t=709
Page 1 of 1

Author:  TalShani [ Sun Aug 23, 2009 1:16 am ]
Post subject:  Classic ASP integration code

Using the new "Cookies Integration" mechanism there is now a way to integrate better with Classic ASP pages that use session variables.

Replace the bottom part of your tracking code with the following:

Code:
<!-- ClickTale Bottom part -->
<div id="ClickTaleDiv" style="display: none;"></div>
<script type='text/javascript'>
document.write(unescape("%3Cscript src='"+((document.location.protocol=='https:') ? 'https://clicktale.pantherssl.com/' : 'http://s.clicktale.net/')+"WRb.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript" src="http://s.clicktale.net/FetchFromWithCookies.js"></script>
<script type="text/javascript">
FetchFromWithCookies.setFromCookie(/^ASPSESSIONID.*/);
ClickTaleFetchFrom = FetchFromWithCookies.constructFetchFromUrl();

if(typeof ClickTale=='function') ClickTale([!YOUR PARAMETERS!]);
</script>
<!-- ClickTale end of Bottom part -->


This should allow ClickTale to better cache the pages of your session based website.

Please note this code is not https/SSL compliant. To enable the recording of https pages (available to premium subscribers) you need to generate a https/SSL tracking code for your project and augment that code's bottom part similarly to the code appearing here (i.e. none of the original code is removed - only some lines are added). The FetchFromWithCookies.js files will have to be hosted locally on a https location as well.

see also:
"cookies integration": viewtopic.php?f=5&t=694

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/