🔥 Major updates
Added selective query parameter and hash tracking to trackViews
The search and hash options can now accept allowlists:
swetrix.trackViews({
search: ['query', 'page'],
hash: ['pricing', 'features'],
})This keeps unrelated URL parameters and hashes out of tracked page paths, reducing fragmented page analytics. Set either option to true to continue tracking every value as before. Hash values are matched exactly, with or without a leading #.
🙂 Minor changes
- Error Tracking now supports stack traces of up to 64,000 characters, increased from 7,500, allowing longer framework and asynchronous call stacks to be recorded through
trackError().