Skip to content

tracker-js@4.7.0

Choose a tag to compare

@Blaumaus Blaumaus released this 26 Sep 17:16
· 10 commits to main since this release

🔥 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.