I would like to include the dashboard using iFrame and iframe-resize on the backend of my website. This worked in previous versions. In the latest version Matomo version, I can’t get it running. Is anyone having a working iFrame version of the dashboard and you are willing to share the code? Thanks a lot.
If this stopped working after an update, it is usually because the dashboard pages now block being embedded in an iframe.
Check your Matomo settings and server headers for X-Frame-Options or Content-Security-Policy that prevents framing.
If you are embedding across different domains, iframe-resize also needs the correct cross-domain setup and the script must load on both the parent page and the iframe page.
As a quick test, try embedding a simple Matomo page that is known to allow framing and see if resizing works there.
If framing is blocked, the safest option is to use the official ways Matomo provides to embed widgets or reports instead of the full dashboard in an iframe.