ProStores SSML integration

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

SSML stands for Store Sense Markup Language and is the proprietary markup for the eBay ProStores e-commerce system. As ProStores runs on a divided header/footer template system, Headers and footers 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.

This fix, by a user in our forum called forsports, uses SSML conditional statements to load the non-secure version on non-secure pages and the secure version on secure pages.

ClickTale Top Section

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

ClickTale Bottom Section

<ss:if test="$request.getScheme() == 'http'">
<!-- ClickTale Bottom part -->
<div id="ClickTaleDiv" style="display: none;"></div>
<script src="http://בגמ.clicktale.net/WRe.js" type="text/javascript"></script>
<script type="text/javascript">
if(typeof ClickTale=='function') ClickTale([!your parameters!]);
</script>
<!-- ClickTale end of Bottom part -->
<ss:else/>
<!-- ClickTale Bottom part -->
<div id="ClickTaleDiv" style="display: none;"></div>
<script type='text/javascript'>
document.write(unescape("%3Cscript src='"+((document.location.protocol=='https:') ? 'https://clicktalecdn.sslcs.cdngc.net/www/' : 'http://cdn.clicktale.net/')+"WRe.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var ClickTaleSSL=1;
if(typeof ClickTale=='function') ClickTale([!your parameters!]);
</script>
<!-- ClickTale end of Bottom part -->
</ss:if>