Is there a way to enter or use custom ranges for heat maps? I want a range different from "day", "week" and "month". For instance: last week of march first week of april or all 2010.
For the moment, it's impossible. My opinion is that you don't need such a thing, as a week of data is enough to see where the clicks are, and where the problem is on your design. A year of data is totally wrong, as if you change your design a little bit during the year, the clicks have no more meaning.
So week/month are shortcuts for people who don't have enough data on a single day.
Perhaps the MySQL release of ClickHeat 2.0 will allow such a thing (will probably be released at the end of this year).
Hi. I've been using version 1.14 for a good while and was wondering if there's any news on this topic, either for version 2 or 1.x.
ClickHeat is a nice product as it is, yet some websites that I manage (or that I intend to analyze) have relatively low traffic and it would be really helpful being able to select a whole year or a custom date range.
Any news will be appreciated.
Unfortunately, I had no time to release a MySQL-based ClickHeat.
For your year data concern, you may edit ClickHeat files as follow:
$range = isset($_GET['range']) && in_array($_GET['range'], array('d', 'w', 'm')) ? $_GET['range'] : 'd';
$range = isset($_GET['range']) && in_array($_GET['range'], array('d', 'w', 'm', 'y')) ? $_GET['range'] : 'd';
then, add after the «case 'm':» block:
$days = 365;
$delay = date('y', $dateStamp) !== date('y') ? 86400 : 120;
after the line 164 (and a similar code), add:
<td id="clickheat-calendar-y"<>a href="#" onclick="currentRange = 'y'; this.blur(); updateCalendar(); return false;"><?php echo isset($ranges) ? $ranges : 'Year' ?></a></td>
This should do the trick (but there won't be any calendar fancy selection, too much work is needed for that).
Tell me if it's good for you. The right way to do this should be to set a start date and an end date, like Google Analytics, rather than predefined weeks/years.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.