-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
49 lines (35 loc) · 1.74 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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? %>
<script src='/javascripts/overlay.js' type='text/javascript'></script>
<% else %>
<script src='/javascripts/clickmap.js' type='text/javascript'></script>
<% end%>
3.3 - Put this html code into your templates you want to measure.
<div id="prova" style="margin:auto;width:800px;height:1px;"></div>
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
<div id="prova" style="margin:auto;width:800px;height:1px;"></div>
example.2 When your content is aligned to left
<div id="prova" style="height:1px;"></div>
4. 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