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

Umami breaks client side navigation with auto-tracking #3

Open
HighPriest opened this issue Mar 2, 2025 · 2 comments
Open

Umami breaks client side navigation with auto-tracking #3

HighPriest opened this issue Mar 2, 2025 · 2 comments

Comments

@HighPriest
Copy link

Hi.

I have found out that the automatic Umami page view tracker is breaking client side navigation, by forcing full page reloads whenever the url changes. This happens when navigation is done both with anchor tags & with goTo function

I am trying out this tool in response to relevant Issue on Umami board Nr.3267.

Unfortunately, I see that this package does not introduce custom handler for automatic page tracking, thus falling prey to the same issue which is plaguing the umami tracker when it is loaded from HTML <script> tag.

@SaschaLucius
Copy link
Owner

Hi,
@HighPriest you are right, I'm just wrapping the Umami script right now,
specially to avoid adopting the package each time when Umami changes and not run into CORS issues in the frontend.
I have done a prototype in the past, to re-write a client for Umami, but stopped on it because it felt not beneficial at all.

So currently, I have nothing in mind how I could help you with your specific problem.

Are you asking with this open issue for a specific adoption or feature request?

@HighPriest
Copy link
Author

Primarily, I am posting these Issues, to raise awareness about Umamis "hijack navigation, send tracking message, return navigation" approach breaking client side navigation functionality.

It took me a while to figure out that the cause was Umami after adding it to an advanced project. In dev env & on a fast connection, it has not been immediately obvious that client side navigation no longer works.

Secondarily, it is a good starting point to discuss a way to hook umami script to sveltes navigation, so we can have tracking work as it should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants