Repository navigation
🔥 Major updates
Automatic outbound link tracking
You can now automatically track clicks on external links. Outbound link tracking is disabled by default and can be enabled during initialisation:
swetrix.init('YOUR_PROJECT_ID', {
events: { outboundLinks: true },
})
swetrix.trackViews()Clicks appear in Traffic → Pages → Outbound links, separately from custom events. Tracking supports dynamically added links, nested elements, and middle-clicks without delaying navigation.