Skip to content

flavormingo/siteline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

siteline

lightweight website analytics focused on privacy

with such amenities as

  • 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

so why wait any longer

backend

  1. download pocketbase

  2. run ./pocketbase serve

  3. open http://127.0.0.1:8090/_/ and create admin

  4. import the schema:

    • settings > import collections
    • paste the contents of backend/pb_schema.json
    • import

frontend

  1. copy the frontend folder to your web server

  2. 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');

tracking snippet

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

pockethost deployment

  1. create a free account at https://pockethost.io

  2. create a new instance

  3. import the schema from backend/pb_schema.json

  4. deploy the frontend to any static host

  5. update the api url to point to your pockethost instance

privacy

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

credits

made with love by mazz.digital

About

open source lightweight web analytics for cool cats

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors