Using custom events on your website has become a lot easier! We added a new script allowing you to:
✅ Create custom events using HTML attributes and CSS classes
✅ Automatic outbound link tracking
✅ Automatic file download tracking
✅ Tracking 404 error pages
To get started, replace pirsch.js with pirsch-extended.js on your site. It combines all other scripts, so the events script can also be removed.
Adding the script will automatically start tracking outbound links and file downloads as custom events.
They'll pop up on your dashboard, so you can see which links have been clicked and which files were downloaded the most. You can filter your dashboard by them.
Filtering the dashboard allows you to see which pages a link was clicked on or a file has been downloaded from. Just take a look at the "Event Pages" panel.
Adding custom events is a lot easier using the new script snippet. It allows you to add HTML attributes and CSS classes, without the need to write any JavaScript! 🙌
404 error pages can be tracked by triggering the "pirschNotFound" JavaScript function. You can statically place it on your site or add it server-side to your HTML if the page could not be found.
It will also be displayed as an event on your dashboard.
You'll find new sections for each of the new features in our documentation 👍
And last but not least, we have added a demo to showcase the new features!
You can find it on GitHub. We keep updating and adding more demos to the repository, so don't forget to leave it a start ⭐️