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

philbar’s picture

Title: Heatmap vertical position issue with primary tabs and admin content » View Report without Admin UI
Category: support » feature
philbar’s picture

Perhaps calling user_is_anonymous would do the trick.

philbar’s picture

This 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:

/**
 * If inside the ClickHeat iframe then remove admin menu.
 */
Drupal.behaviors.click_heatmap = function() {
  if (window.location.href != parent.location.href) {
    $('#admin-menu').remove();
    $('#content-tabs').remove();
  }
}

This also works for any DIV element you want to remove when viewing the ClickHeat Report.

john franklin’s picture

Version: 6.x-2.6 » 6.x-3.x-dev

Bumping to 6.x-3.x. There needs to be a more generic solution to this.

john franklin’s picture