tinybirdco/web-analytics-starter-kit

[Feature Request] Improve tracking script listeners

Closed this issue · 0 comments

Describe the feature you'd like to request

We need to improve the tracking scripts listeners, in order to have:

  • Better page load detection, specially for SPA frameworks like Next.js. Not working great right now.
  • Detect navigation on SPAs, without having to listen for the click event, which is overkill. hashchange and popstate look promising.

Describe the solution you'd like

We can trigger the page_hit event on every page load and navigation, even on SPA applications.

Describe alternatives you've considered

N/A