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

exclude Turbo 8 instant-click requests #550

Closed
francescob opened this issue Feb 26, 2024 · 2 comments
Closed

exclude Turbo 8 instant-click requests #550

francescob opened this issue Feb 26, 2024 · 2 comments

Comments

@francescob
Copy link

I'm not sure this is doable at the moment because from a first look seems like new turbo 8 instant-click (aka prefetch) requests are indistinguishable from a normal request, but it would be very important to be able to exclude this request from the tracking

@francescob
Copy link
Author

I've actually found a header value that can't be used to filter the request, it looks like this:

"HTTP_X_SEC_PURPOSE"=>"prefetch"

so it can easily be skipped by writing one line of code in application_controller

Don't know if it's worth to skip it by default though (probably yes)

@ankane
Copy link
Owner

ankane commented Feb 28, 2024

Hi @francescob, you can use exclude_method or customize the data store for this (but would need to use client-side analytics to know if a page has been visited).

@ankane ankane closed this as completed Feb 28, 2024
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