*

*

0/500

Why the heatmap could not be generated

“Could not generate heatmap” means that the heatmap is not displayed and instead, the following screen is shown when trying to view the heatmap in Ptengine.

It means that Ptengine failed to open the requested page when attempting to access the user’s website.

For example, if you attempt to access “https://www.aaa.com/thanks”, sometimes you will be redirected to the Top page.

When attempting to check the heatmap of this page in Ptengine, the redirect logic of this site will try to display the top page instead of “https://www.aaa.com/thanks“.

As a result, “page acquisition failed” appears.

The main reasons for redirecting are as follows.
① When the description of JavaScript called “Anti-redirect” exists in the HTML source
② When access from PCs isn’t allowed to a mobile site
③ When access from http is restricted
④ When the page requires logging in
Please try the following corresponding solutions.
(1) When the description of JavaScript called “Anti-redirect” exists in the HTML source
The reason is that there is a JavaScript description that prevents the page from being imported to the external site in the HTML of the target page.
For example, if there is a description of JavaScript called “Anti-redirect” in the HTML source, even if the external site tries to display the site created by the customer in the iframe, it redirects and automatically cancels the iframe.
In order to solve this problem, you need to delete the corresponding JavaSceript from the HTML source of the target page yourself.
Also, if you use a plug-in called “WP-Copyright-Protection” on
a website created with WordPress, it will be force redirected and you will not be able to see the heat map.

The reason is that if your site is displayed in a third-party site in an iframe with a description like the following in the HTML source, it redirects and has a function that automatically cancels the iframe.

<script type=”text/javascript” language=”JavaScript1.1″>// <![CDATA[

if (parent.frames.length > 0) { top.location.replace(document.location); }

// ]]></script>

In order to solve this problem, you need to stop the plug-in “WP-Copyright-Protection” yourself.

② When PC access of a mobile site is restricted

Solution 1

To solve this problem, setup a new user agent (UA) when viewing the heatmap

We recommend the following plug-in for switching the UA https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg?hl=en

Please switch to a smartphone device here and check the heatmap.

Solution 2

Add the following code snippet to the redirect logic of that specific page’s html.

if(top.location.href.indexOf("ptengine.com") == -1)

③ When access from http is restricted

Solution 1

Add the following code snippet to the redirect logic of that specific page’s html.

if(top.location.href.indexOf("ptengine.com") == -1)

④ When a page requires logging in

Solution 1

Please log in in a separate tab and check the heat map from the heat map screen using overlay.

Reference: https://help.ptengine.com/heatmaps/login-needed-page

Solution 2

Add the following code snippet to the redirect logic of that specific page’s html.

if(top.location.href.indexOf("ptengine.com") == -1 )

Hits: 2616