Heatmap preview iframe is incorrectly tracked as a page view
Author: kcmrCreated Sep 10, 2026Updated Sep 16, 2026
Labelsbug
Describe the Bug
Description
When viewing a page in the Heatmaps section of the Umami dashboard, the page preview is loaded inside an iframe. Because the tracked website contains the Umami analytics script, loading this preview triggers a page-view event and incorrectly counts the heatmap inspection as a real visit.
This inflates page-view metrics whenever someone reviews a heatmap in Umami.
Steps to reproduce
- Track a website with the Umami analytics script.
- Open that website in the Umami dashboard.
- Navigate to the Heatmaps section and view a page.
- Check the analytics data for that page.
- Observe that loading the heatmap preview has added a page view.
Expected behavior
Page views should not be tracked when the website is embedded in an iframe whose parent belongs to the origin serving the Umami analytics script/dashboard. Heatmap previews should therefore not count as visits to the tracked website.
Database
PostgreSQL
Relevant log output
Which Umami version are you using?
3.3.1
How are you deploying your application?
Self-hosted
Which browser are you using?
Chrome
Source: umami-software/umami