How to exclude your own mobile browser visits from Plausible Analytics
Published on in Bookmarklet
Last updated on
Use a bookmarklet to stop Plausible Analytics from counting your own visits made using mobile devices.
Table of contents
localStorage.plausible_ignore = true in the browser's console
to start excluding your own visits.
We need to set the
localStorage item mentioned in the previous section.
You could try pasting the following code to the browser's URL bar and then executing it by "visiting" the URL:
It's the same code as the code that should be run on desktops,
but prefixed with
But it doesn't work on my iPad. I don't know about Android devices; you could try.
A bookmark with the location set to a
is a bookmarklet.
create a browser bookmark
with the location set to the code from the previous section,
and then run it.
- How to create a bookmarklet in iOS Safari. Then run it by "opening" the bookmark/bookmarklet.
- How to create and run a bookmarklet in Android Chrome.
Note that Firefox for iOS doesn't support bookmarklets.
I confirmed that the bookmarklet worked by looking at my site's analytics; my own visits from my iPad were not counted anymore.
You can make the bookmarklet a bit friendlier
by showing an alert box after setting the
Then you don't have to wonder whether the bookmarklet was run or not.