Hello,
I am struggling with heatmaps. There is an option to manually capture a snapshot by pasting a script in your browsers console. I tried this several times but all i get is “undefined” in the console. Not sure what to expect? I read the instructions on Matomos support page but still cannot pull it off.
Is there anyone who has any idea how i manually can grab a snapshot for heatmap?
Browser console returning “undefined” is not an issue, if the JavaScript implemented in the console does not return any value, it displays “undefined” and it is how the console works. It is an expected behavior.
Same issue here !
I also contacted Matomo support, but i thought i’d share some more details here as well, since it doesn’t seem like an isolated issue.
Here are some additionnal informations :
once the “Capture Heatmap Snapshot Manually” option is checked, not only the Snapshot capture is stopped : no data is captured at all. You can confirm it by using Matomo HSR debug command _paq.push(['HeatmapSessionRecording::enableDebugMode']); and seeing… nothing at all
Although no snapshot (nor data) is captured, the configuration is sent and can be fount within the network tab of the dev console
When the setting to “Capture Heatmap Snapshot Manually” it will not send any capture any screenshot unless (_paq.push(['HeatmapSessionRecording::captureInitialDom', {idHeatmap}]) ) is executed. When ‘getdom’ property is set to false, Matomo understand that as no screenshot needs to be captured and that is the purpose of the setting. If you need more information, we can discuss in the support request.
After my case was solved by the support, i share the case (and solution) here :
in my case the issue was related with having 2 Heatmaps waiting for capture on the same page at the same time. Managing the captures one by one solved it.