lightweight website analytics focused on privacy
- page views, unique visitors, referrers, top pages
- no cookies, fingerprinting or personal data
- host it yourself on pockethost or any vps
- a <1kb tracking script
-
download pocketbase
-
run
./pocketbase serve -
open http://127.0.0.1:8090/_/ and create admin
-
import the schema:
- settings > import collections
- paste the contents of
backend/pb_schema.json - import
-
copy the
frontendfolder to your web server -
update the api url in
frontend/app.js:var API = 'https://your-pocketbase-url.com';
or set it via localstorage:
localStorage.setItem('siteline_api', 'https://your-pocketbase-url.com');
add this to any site you want to track:
<script src="https://your-siteline-url.com/siteline.js" data-site="SITE_ID"></script>the site id is shown in your dashboard after adding a site
-
create a free account at https://pockethost.io
-
create a new instance
-
import the schema from
backend/pb_schema.json -
deploy the frontend to any static host
-
update the api url to point to your pockethost instance
siteline is designed to be privacy-first:
- no cookies
- no fingerprinting
- no personal data collection
- respects do not track settings
- all data is stored on your own server
- visitor ids are random and stored locally
made with love by mazz.digital