ClickTale Support Forums

All times are UTC - 6 hours



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Jul 24, 2008 2:06 pm 
Offline

Joined: Thu Jul 24, 2008 1:36 pm
Posts: 1
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. :-)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 26, 2008 5:18 pm 
Offline
Site Admin

Joined: Fri Jul 21, 2006 2:39 pm
Posts: 1206
Location: Israel
Hey forsports,

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

Arik.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group