Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event tracking on links with target=_top are broken #3187

Open
stag-enterprises opened this issue Jan 23, 2025 · 0 comments
Open

Event tracking on links with target=_top are broken #3187

stag-enterprises opened this issue Jan 23, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@stag-enterprises
Copy link

stag-enterprises commented Jan 23, 2025

I've installed a self-hosted Umami on my website, in addition to using the provided script that adds event data attributes to all links elements.

Some links on my website are inside an iframe, and they include target=_top (or set by a <base target=_top>). This should cause these links to be opened in the top document (the tab itself), but when Umami event data attributes are added to it, the links open in the iframe.

Demo: https://stag.lol. Click “services”, and click any of the links. Even though a <base target=_top> is included in the iframe, the link opens inside the frame.

Database: PostgreSQL
Version: v2.15.1
Browser: Chrome 131
Deployment: Docker

@mikecao mikecao added the bug Something isn't working label Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants