Unable to see click heatmaps
Hello I am using countly-sdk-web: 22.2.2 in Single page react application.
When I open heatmaps l get following warning and I don't see any heatmap:
[WARNING] initialize, Ignoring this visitor.
I tried it on localhost and also deployed on server.
Scroll heatmaps are working fine.
From the logs I see that the click event is being tracked (I've changed app_key and device_id in this log):
countly.min.js:25 [INFO] start_time, Starting tracking duration
countly.min.js:25 [INFO] check_consent, Checking if consent is given for specific feature
countly.min.js:25 [INFO] check_consent, require_consent is off, no consent is necessary
countly.min.js:25 [INFO] Successfully adding event: {"key":"[CLY]_action","segmentation":{"type":"click","x":351,"y":786,"width":989,"height":979,"view":"/","domain":"localhost"},"count":1}
countly.min.js:25 [INFO] check_consent, Checking if consent is given for specific feature
countly.min.js:25 [INFO] check_consent, require_consent is off, no consent is necessary
countly.min.js:25 [DEBUG] Processing request{"events":"[{\"key\":\"[CLY]_action\",\"count\":1,\"segmentation\":{\"type\":\"click\",\"x\":351,\"y\":786,\"width\":989,\"height\":979,\"view\":\"/\",\"domain\":\"localhost\"},\"timestamp\":1653027579348,\"hour\":8,\"dow\":5}]","app_key":"MY_APP_KEY","device_id":"MY_DEVICE_ID","sdk_name":"javascript_native_web","sdk_version":"22.02.2","t":1,"timestamp":1653027579512,"hour":8,"dow":5}
countly.min.js:25 [DEBUG] Sending XML HTTP request
countly.min.js:25 [DEBUG] send_request_queue HTTP request completed [200][{"result":"Success"}]
countly.min.js:25 [DEBUG] Request Finished{"events":"[{\"key\":\"[CLY]_action\",\"count\":1,\"segmentation\":{\"type\":\"click\",\"x\":351,\"y\":786,\"width\":989,\"height\":979,\"view\":\"/\",\"domain\":\"localhost\"},\"timestamp\":1653027579348,\"hour\":8,\"dow\":5}]","app_key":"MY_APP_KEY","device_id":"MY_DEVICE_ID","sdk_name":"javascript_native_web","sdk_version":"22.02.2","t":1,"timestamp":1653027579512,"hour":8,"dow":5}false
countly.min.js:25 [INFO] session_duration, Reporting session duration
Comments
Hello, when opening a heatmap, seeing the "[WARNING] initialize, Ignoring this visitor." message is expected. It is being created by our SDK which is being loaded while trying to display the heatmap. So if you are not seeing any heatmap data, the reason for that would be different.
Could you please show me what you mean with "I don't see any heatmap"?
Thank you for quick response. I mean I don't see the heatmap iframe for clicks. There are no errors or other warnings. In developer tools in the network tab I can see that the request for getting heatmaps was made.
Hello, is this app you mention is different from the app you have mentioned in your other post? Also is it possible for you to share your initialization code?
I am having a similar issue. I cannot see heatmaps for clicks or scrolls. Latest Enterprise version and the developer console shows no errors.
Hi Timothy,
We would need more information to help you with your problem. What is your SDK version (not server version)? Did you enable SDK logging? Did you enable tracking clicks and/or scrolls? Are you able to observe '[CLY]_action' events in your Request Logs (your server Main Page > Utilities > Request Logs)? Is Heatmaps feature enabled in your server (Management > Feature Management)?
Please sign in to leave a comment.