histcat

histcat

Introduction to umami installation

Introduction to umami#

umami open-source repository

Umami is an open-source, self-hosted web analytics solution

As stated on the official website, umami is an open-source, self-hosted web analytics tool. It can help you more accurately track your website's data.

Interface screenshots:

umami

umami

Brief Overview of the Installation Process#

  1. Register a database account to obtain the connection URL
  2. Fork the repository and deploy on Vercel
  3. Add the website and configure it

1. Register a Database Account to Obtain the Connection URL#

Find a free MySQL or PostgreSQL database; here we recommend Supabase. Click here to register, and you can use your GitHub account directly. After logging in, click "New Project."

umami

Fill in any name, and set the Database Password as the database password, make sure to remember it. No need to change the region; click Create New Project, and then wait for a while for initialization.

umami

Then, follow the process in the image, click copy, and change the password to what you set. The database setup is complete.

2. Fork the Repository and Deploy on Vercel#

Click to enter and fork the repository, open Vercel, create a new project, and import the repository. umami

Click "Environment Variables" and add 3 environment variables:

DATABASE_URL: the string you just copied and modified
HASH_SALT: random string (hash salt)
TRACKER_SCRIPT_NAME: random string (js file name, to prevent being blocked by ad-blocking plugins)

Deploy, bind the domain name, and you're done!

3. Add the Website and Configure#

(You can change to Chinese at the globe icon in the upper right corner)

Click to add a website

umami

Choose any name, and fill in the domain name of the website you want to track.

umami

Copy the tracking code into the <head> section of your website (the implementation method varies for each website; for example, Hexo themes can generally add it in the configuration file), and you're all set! QwQ

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.