2
0 Comments

Outbound Link and File Download Tracking, 404 Error Pages, and more!

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.

Events

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.

Dashboard filter

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! 🙌

HTML and CSS events

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.

404 error pages

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 ⭐️

, Co-founder of Icon for Pirsch Analytics
Pirsch Analytics
on April 10, 2023
Trending on Indie Hackers
AI runs 70% of my distribution. The exact stack. User Avatar 180 comments I'm a solo founder. It took me 9 months and at least 3 stack rewrites to ship my SaaS. User Avatar 143 comments I used $30,983 of AI tokens last month in Claude code on $200/mo plan User Avatar 45 comments We could see our AI bill, but not explain it — so I built AiKey User Avatar 25 comments AI coding should not turn software development into a black box User Avatar 24 comments my reddit post got 600K+ views. here's exactly what i did User Avatar 19 comments