CodeIgniter Integration Module

This article is meant to assist in implementing a specific version of the ClickTale PHP Integration Module on sites which use the Codeigniter framework.

Installation Guide
 Download the PHP Integration Module from here.

Remove the existing ClickTale code and/or disable other integration methods (for example, the PHP integration code)

Place the downloaded and extracted Integration Module folder inside the CodeIgniter "\application" folder.

Inside the ClickTale folder create a PHP file by the name of ClickTale_CodeIgniter.php.

The file should include the following code:  Go to the CodeIgniter "\application\config\hooks.php" file and add the following code: Where "filepath" is the ClickTale folder name and "filename" is the attached "ClickTale_CodeIgniter.php" file name as saved in the ClickTale folder (Please note that both are case sensitive). 4. Go to CodeIgniter "\application\config\config.php" and set: Generate the ClickTale tracking code you wish to use in your pages (or locate simply use the code what had formerly been implemented on your pages). Copy and paste the generated code into the appropriate parts (Top and Bottom) in the ClickTaleScripts.xml file. Add the cache fetching redirection code, according to your tracking code type:    (How can I find which code type my project is using?) 

Create two directories named "Cache" and "Logs" under the 'ClickTale' directory. Make sure they have writing permissions, for instance:
 * If you are using Apache with mod_php then the Cache and Log directories should be writable by Apache.
 * If the PHP is executed by some other means (CGI for instance), it's possible that it is executed under a different user than that of the web server. In that case it might be simpler to set the permissions for those directories to 777.

</li>
 * For windows machines, the directories should be writable by the webserver.

Tip: see here to disable or enable yourself from being recorded. Apply this to everyone who is working in the organization, otherwise they may use a part of your account's recording quota. You may enable the option to be recorded for testing purposes. </ol>

Troubleshooting
After the files are copied you can navigate to  http://yoursite/ClickTale/Install/index.php  to view some helpful information regarding caching and other configuration settings. Please note that an indication of the implementation being done correctly is the following entry in the ClickTale log (once a visitor lands on a page which includes the code): Output buffer handled by CodeIgniter hook function

Configuration
The Configuration of the module when CodeIgniter is used is identical to that of regular PHP implementations. For instructions as to the configuration of the module please see the PHP Integration Module configuration section