Vidu - Mini
This is a (even more) minimal version of the former Vidu analytics project.
Vidu [see - /Esperanto/] consists of
- A Netlify Function that is included as "tracker" in your web pages to collect (anonymized) user data and saving these in Netlify Blobs.
- A SvelteKit web app which displays all the data in a simple yet beautiful dashboard.
Tip
Reading the blob data stores can sometimes be a little slow, and loading the stats page may seem unresponsive. Implement some loading indicator for use in production...
This project was created for fun and educational purposes.
Fork it. Extend it. It's "unlicensed".
I assume you already have a Netlify account.
- Deploy repository to Netlify
You can easily clone this repo and deploy this app in a few seconds by clicking the deploy button.
- Environment Variables
Important
You need to create two environment variables for the app to be able to get the blobs data:
- VIDU_MONITORING_SITE_ID: The site ID of the webpage to track (Site configuration - General - Site ID)
- VIDU_MONITORING_AUTH_TOKEN: A personal access token (User settings - Application - Personal access tokens)
The tracking code needs to be present on every page you want to track. It calls a Netlify function which pushes the tracking data to your blobs store and returns a bas64 encoded transparent image.
<img src="/.netlify/functions/counter"
alt=""
width="0"
height="0"
hidden
decoding="async"
loading="eager" />
- Page visits of every page
- Visits by country
- Visits overall
- Visits for each day of the last 10 days
Can easily be extended by storing more information in blobs...

