Are you tired of seeing your own visits in Plausible analytics? We've made a simple Laravel package that will help you fix that.
Before you dive in, this article is for Laravel users. If don't know what Laravel is, or don't use Laravel you can continue reading the Plausible docs here: "Opt out and exclude your visits from the analytics by setting a localStorage flag in your browser"
TL;DR version of the Plausible article is: set a localStorage flag to exclude your visits.
That sounds easy, why a package?
Well, you don't have access to the console on your mobile device. Perhaps, you have other people on your team who are not technical. Wouldn't it be easier to do this if there was a button on your page?
You can probably add that quickly. But let's say you have 5 different sites where you need to do this. It gets pretty time consuming really fast.
Enter Laravel Plausible Exclude
We made a tiny package that will add a route to your Laravel app. You can access it by going to
yoursite.com/plausible and it looks like this:
Click the button, and Plausible will ignore your activity coming from that browser.
How to install?
You can install the package via composer:
composer require swiftmade/laravel-plausible-exclude
Now you should have the
/plausible route working. That's it!