Exclude your own traffic from Plausible Analytics

Using Plausible in your Laravel site and want Plausible to ignore your visits? We got a package for you!
Ahmet Özışık · Founder · March 11th, 2023

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:

Laravel Plausible Exclude

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!

View our package on Github

Complete monitoring toolkit for Laravel apps. Now in private beta!

Learn more

MORE FROM OUR BLOG