EzPublish Integration Code

From ClickTale Wiki
Jump to: navigation, search

ezPublish Community CMS

Implementing on the eZPublish CMS system is very straight forward. The FetchFromWithCookies script is used to allow the capture of the users session data during and after login with no need to install any binaries. ClickTale scripts run without issue on the pages including searches and should be compatible with any of our JavaScript_API commands including Events.

Implementation steps:

  1. Install ezPublish as recommended by eZ Systems AS
  2. Generate the ClickTale Tracking_Code
  3. Navigate to setup>sections>design>web interface>edit in the eZPublish Admin Interface
  4. For the default full content site, the copyright box is ideal as it is used on every page. Finer control could be made by creating a new section(area) that resides before the </body> inside a custom/override template.
  5. Insert the following code:
<div id="ClickTaleDiv" style="display: none;"></div>
<script type='text/javascript'>
document.write(unescape("%3Cscript%20src='"+
 (document.location.protocol=='https:'?
  'https://clicktale.pantherssl.com/':
  'http://s.clicktale.net/')+
 "WRb6.js'%20type='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("eZSESSID");
FetchFromWithCookies.setFromCookie("is_logged_in");
</script>
<script type="text/javascript">
var ClickTaleSSL=1;
ClickTaleFetchFrom = FetchFromWithCookies.constructFetchFromUrl();
if(typeof ClickTale=='function') ClickTale([YOUR CLICKTALE PARAMETERS]);
</script>

6. Click "Send for Publishing"
7. Navigate to(it can be useful to open in a new tab as this step is required with every page change) Setup in the eZPublish Admin Interface and then click "Clear template caches"
8. Test your new ClickTale enabled CMS system (site, forum, blog, shop and wiki all-in-one. its very nice!)


Version tested: ezpublishcommunity-4.4.0-with_ezc-gpl with full demo content running on Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 Notes: If you notice any 302 errors in recordings of the cart login check the users shop permissions and elevate appropriately

Personal tools