An open API service indexing awesome lists of open source software.

https://github.com/2mal3/nano-analytics

An extremely lightweight and privacy-preserving analytics platform for self-hosting.
https://github.com/2mal3/nano-analytics

Last synced: 2 months ago
JSON representation

An extremely lightweight and privacy-preserving analytics platform for self-hosting.

Awesome Lists containing this project

README

        

# nano-analytics

An extremely lightweight and privacy-preserving analytics platform for self-hosting. It's easy to set up and integrate into your services to anonymously track device, browser, country, date, and your own custom user actions. The statistics are then easily accessible through a web UI.
The main idea of this application is based on [this](https://herman.bearblog.dev/how-bear-does-analytics-with-css/) very interesting article from Herman's blog.

The statistics can be viewed at the `http:///stats` url with the correct credentials.

## Setup The Server

I highly recommend using Docker (image: `ghcr.io/2mal3/nano-analytics:latest`).

### Required Configuration

- environment (env) variable: `ADMIN_USERNAME` (default `admin`)
- env variable: `ADMIN_PASSWORD_HASH` (bcrypt hash of the password, can be generated ith `mkpasswd -m bcrypt ""`)
- forward port `1323`
- volume for `/app/database`

## Integration Into Your App

Somehow call the URL `http[s]:///track/[?action=&referrer=]` from the client. Where the application identifier and the action can be any string of your choice.

For example, a website could do this with the following css class:

```css
body:hover {
border-image: url("");
}
```