Heatmap not rendering correctly from Webflow Page

Hi,

We are using Heatmap recording to track user behaviour and improve our website.
As we are low coding on our Website (using Webflow), I am not sure how to solve the problem. We are using for some sections the setting of viewport height of min-height = 85% vh, which works totally fine.

But as you may see, the Matomo Heatmap shows the rendering of the page fully distorted.

I know that I need to add some code like

.matomoHsr {
    min-height: 2000px !important;
}

.matomoHsr .page {
    min-height: 2000px !important; 
}

But I am not sure which code to enter on our website and where to put it correctly (is it inside head tag, or before body tag?) Can you help me with that?

Hi @chris_de
Following

you may add the class to the HTML tag…

Hi, unfortunately I don’t know how to apply this change in Webflow.
I have a custom class & HTML Tag for the section which is causing the distortion, but I don’t have a custom Style sheet or so in Webflow. Do you have a step by step solution what I should do? As mentioned, I only can deal with low code solutions as I am not deep down in this topic. thanks.

You can do something like:

<script>
  document.children[0].className += ' matomoHsr ';
</script>

Hi @heurteph-ei

I tried to insert your script on following seciton:

1 page inside the: Inside tag
1 page inside the: Before tag

Both solutions are not rendering correctly. Do you have any alternatives I could try?

Sorry, I don’t understand… Which tag are you talking about?

@heurteph-ei
I am building the Website in Webflow.

There I can add your script to those following sections:


I added it with your original script. That’s not working. Than I selected affected elements. Was also not working.

Sorry that I am not so talented.

Hi @chris_de
Why did you write: document.children[0].Section_Landing_become_partner+= ' matomoHsr '; instead of document.children[0].className += ' matomoHsr ';?

@heurteph-ei because your initial script with document.children[0].className += ' matomoHsr '; did not work, so I thought it might be related to className but this was not the case.

What was the symptoms?
Was there any error in the page? (check on the browser console)
Was at the end the matomoHsr class present on the <html> tag?

The Script is on header page, but it doesn’t do anything.

grafik

Still have the problem that the section gets fully rendered in Matomo - as it is set to 85VH (without error message) but looks very strange.

Thats the Rendering of the website withit

Can you check if the class has been added to the <html> tag?

Also, I don’t see the page class in your HTML…
And also, you wanted to have “min-height = 2000px (important)”. How high is the render in the heatmap? Isn’t it at least 2000px high?

I am very sorry, I have no idea how I can add the page class in a webflow element. As said, I am only capabale of low coding, nearly no coding at all.

The Heatmap has an Avg. Above Fold 3503px, but as it is 85% of viewport height it is not rendering the page.

The role of the script I provided is precisely adding the class to the <html> tag…
Can you check on the browser DOM inspector that the class has been added to the <html> tag?

Also, I don’t really understand what you did… You write somewhere about 85vh, but on the CSS code you provided, the measures are set in pixels (min-height: 2000px !important;)