Bottom size fix

  • Anonymous - 2012-09-21

    As you know, clickheat is generating images of 1000px , so if site is 1100px, i am getting 2 images shown so size gets to 2000px, as no more clicks below this line isnt working well, you can see it on demo site also. So I came to conclusion to take framed site height through attached js file, retrieve it and place it as #pngDiv height with overflow hidden. That way, you would never get empty space at the bottom, and it would only show as much as its height of that site that you are tracking. Now its easy to retrive height of site that you placed your code, through javascript, BUT I am having trouble with where to save it and how to access it when changing groups. If anyone could give help, I would appreciate it very much.

    Heat is a great tool

  • Blade 1o6

    Blade 1o6 - 2012-09-23

    No, ClickHeat doesn't always generate 1000px high pictures. But it may :-) This is a computation between the width, the memory limit and the final memory size of the image. But AFAIR, it limits it to 1000px max, that's a point (else there would be pictures too big for nothing).
    For example a 1000x1000 image is the same size in memory as a 2000x500. So it depends on the width you've selected, and the memory size you've selected.
    The fact is that the maximum height isn't computed before generating images, for speed purpose. This will be fixed in the next release of ClickHeat, which will be the Piwik Heatmap Plugin (ClickHeat v2.0 will never see the light).

    For the «no clicks below» issue, that's just because it's not associated with the actual height of clicks, but it's the end of the last image generated. The idea was to explain why there was nothing (no overlay/picture) below this line (because there was nothing to generate!).

    Try to lower your memory limit, this will create more images, and perhaps solve your issue. Or remove the 1000px limit, setting it to 1500 for example (file Heatmap.class.php, line 107)


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks