🔥 Major updates
Page title tracking
Pageviews now automatically include the current document.title, including pageviews recorded during SPA navigation.
You can override the title through the trackViews callback:
swetrix.trackViews({
callback: (payload) => ({ ...payload, title: 'Documentation' }),
})You can also pass payload.title when calling pageview(). Set the title to null or '' to skip title collection.
Titles are limited to 2,048 characters. Changing the document title alone does not trigger a new pageview.