Home > click_heat_map

click_heat_map

Click_heat_map is a project mainly written in Ruby, based on the MIT license.

Click Heat Map plugin for ruby on rails projects

Click Heat Map

A small click heat map plugin for ruby on rails applications.

  1. Requirements

    Rmagick and Rails 2.3.2 needs to be installed.

  2. Instalation

    ./script/plugin install git://github.com/orbanbotond/click_heat_map.git

  3. Steps after install

    3.1 - From you plugin directory run (not from Rails root): 'rake db:migrate:click_heat_map' 3.2 - Put and adapt the below code in the templates you want to measure.

    <% if logged_in? %>

    <% else %>

    <% end%>

3.3 - Put this html code into your templates you want to measure.

3.4 - NOTE: I suppose that you can adapt this fragment to your specific authentication framework <% if logged_in? %>. This fragment would mean that if the administrator is logged in then the cleackheatmap should be displayed otherwise the mouse capturing template should be used.

At the 3.3 step the div is aligned exactly as your content is aligned on the web page. It's purpose is to calculate the position of the mouse clicks independently of your windows size. The same happens when the heat map is displayed.

example.1 When your content is 800px wide and it is aligned to the middle

example.2 When your content is aligned to left

  1. Uninstall

    4.1 - From you plugin directory run (not from Rails root): 'rake db:migrate:click_heat_map_rollback' 4.2 - From you Rails root execute: ./script/plugin remove click_heat_map