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

ProStores SSML Integration of ClickTale
http://forums.clicktale.com/viewtopic.php?f=5&t=410
Page 1 of 1

Author:  forsports [ Thu Jul 24, 2008 2:06 pm ]
Post subject:  ProStores SSML Integration of ClickTale

Code Sample and explanation:

ProStores SSML Integration

For those that aren't familiar with SSML, it stands for Store Sense Markup Language and is the proprietary markup for the eBay Prostores e-commerce system.

I run several sites and provide design and coding work for PS users.

First issue is that PS runs on a divided header/footer template system. Header and footer are loaded on each page with the content loaded between them, so you can run into security certificate warnings on the checkout pages if your links aren't relative or secure (https) on those pages.

I've used ssml conditional statements to load the non-secure version on non-secure pages and the secure version on secure pages.

(note: my account isn't enabled for the secure version of the software so the ELSE section is left blank and it just wont' load clicktale on secure pages)

ClickTale Top Section
Quote:
<!-- ClickTale Top part -->
<script type="text/javascript"> var WRInitTime=(new Date()).getTime();
</script>
<!-- ClickTale end of Top part -->


ClickTale Bottom Section

Quote:
<ss:if test="$request.getScheme() == 'http'">
<!-- ClickTale Bottom part -->
<div id="ClickTaleDiv" style="display: none;"></div>
<script src="http://s.clicktale.net/WRb.js" type="text/javascript"></script>
<script type="text/javascript">
if(typeof ClickTale=='function') ClickTale([!your id!],[!your ratio!]);
</script>
<!-- ClickTale end of Bottom part -->
<ss:else/>
<!-- Add your ClickTale SSL Bottom part below if you have one -->
</ss:if>


Hopefully some of you will find this code of use, or at least interesting. :-)

Author:  arik [ Sat Jul 26, 2008 5:18 pm ]
Post subject: 

Hey forsports,

Thanks for the post.
Changed a few little details to make it more generic and correct SSL wise.

Arik.

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