Hi, I'm having a problem with the position of the heatmap.
For example, when an anonymous user goes through the website, they usually don't have any admin tabs showing at the top of the page content. However, when I go into check the heatmap report, the page that is loaded behind the heatmap image is what I see when I'm logged in as an admin (as this is a 'live' page and I'm logged in as admin), resulting in the admin tabs being visible and the page content being positioned lower.
I would assume this would also cause major problems should there be blocks and content only visible to certain roles that affect the position of content?
My fix was to edit my page.tpl.php and move the tabs to below the $content.... bit of a pain though, I don't know any other solution.
Comments
Comment #1
philbar commentedLog-out then go to
http://domain.com/sites/all/modules/click_heatmap/clickheat/index.php
Changing this to feature.
Comment #2
philbar commentedPerhaps calling user_is_anonymous would do the trick.
Comment #3
philbar commentedThis fix won't work for everyone because some websites use the "admin tabs" for user navigation (such as a wiki would). You can us it though. In
click_heatmap.js, add the following:$('#content-tabs').remove();So you end up with a file with this:
This also works for any DIV element you want to remove when viewing the ClickHeat Report.
Comment #4
john franklin commentedBumping to 6.x-3.x. There needs to be a more generic solution to this.
Comment #5
john franklin commented#683042: click_heatmap.js being added to all pages, not just specific admin screen was marked as a duplicate of this issue.