Are you sick of using website analytics tools that put your users' privacy at risk? Do you want to build your own analytics tool that protects the privacy of your users and gives you full control over your data? If so, You came to the right place.
In this post, I'll talk about how to use open-source tools like Umami, Supabase, Planetscale and Vercel to build your own website analytics platform with a focus on privacy. With this, you can learn how to make a analytics that protects user privacy, gives you full control over your data, and is open to everyone.
Why should you choose Umami?
Umami Analytics is a revolutionary data analysis platform. Umami is a modern self-hosted analytics solution that prioritises user privacy, simplicity, and power.
Umami prioritises user privacy. Umami is a privacy-focused analytics platform. Transparency and control over acquired data protects user privacy. Umami ensures that your analytics practises follow ethical data management norms, boosting trust and user experience.
Umami's elegant interface is another draw. It's aimed for non-technical users. Umami's simple setup and sleek UI make analytics data easy to understand. Track critical metrics, user behaviour, and website or app performance easily.
Umami's extensive features boost its attractiveness. It tracks real-time events, custom events, goals, and more. Explore detailed reports, segment data, and find patterns and trends to make data-driven decisions. Umami lets you analyse data and optimise methods.
Umami's self-hosting allows you full control over your analytics infrastructure. You can host it on your own server or cloud to maintain data ownership. Businesses with strict data security and regulatory requirements need this level of control.
- A Github account
- A Vercel account
- A Supabase account or A PlanetScale account
Setting Up Umami with Supabase and Vercel
As an open-source alternative to traditional databases, Supabase offers a powerful and flexible platform that empowers you to take control of your data.
Step 1: Setting up a Supabase database
- Go to Supabase. then click on Continue with GitHub.
- create an organization with any suitable name
- Now go to Project Settings, And then go to Database from left sidebar.
- Copy your connection string from nodejs tab. which will be like this:
- Now add this to the end of your connection string.
- your connection string will be like:
Step 2: Deploying Umami with Supabase to Vercel
- Login to your Vercel account
- Click on Add new project
- Choose Your Umami repository
- Give it a suitable name you wish
- Click on Environment Variables and Add your connection string like this:
- Click on Deploy
Now let's dive into PlanetScale which will be an alternative method.
Setting Up Umami with PlanetScale and Vercel
PlanetScale provides a robust database system with seamless data flow, high availability, and excellent performance. Businesses looking for a reliable and scalable data storage solution will love its novel features and advanced functions. Let's dive in!
- Sign up on PlanetScale.
- Create an account
- Click on create
- Database name should be
- Choose hobby plan if you want to use the free plan
- Click on create database
- Choose Prisma here
- Get the connection string.
- Copy & Add this to your
- Run this:
yarn run build-db && yarn run update-db
- deploy to Vercel now.
Setting up your website on Umami
- Go to your deployed Umami site
- Login with default username
- Go Settings > Websites > Add website
- Go to edit> Tracking Code> Copy this script
- Add this script to your
Harnessing the combined power of Umami, Supabase, PlanetScale and Vercel, you can forge a sophisticated analytics platform that embraces user privacy and grants you unparalleled control over your data. By leveraging these open-source tools, you can create a data-driven ecosystem that is not only robust but also accessible to all, regardless of financial resources or technical proficiency. Don't hesitate to embark on this transformative journey and unlock the true potential of your data.
- Is Umami Analytics open-source?
- Yes, Umami Analytics is an open-source project, which means the source code is freely available for users to view, modify, and contribute to its development.
- Can I self-host Umami Analytics?
- Yes, Umami Analytics is designed to be self-hosted, allowing you to have complete control over your data and ensuring data privacy.
- What are the key features of Umami Analytics?
- Umami Analytics offers features such as real-time tracking, customizable dashboards, goal tracking, event tracking, geographic data, and more to provide valuable insights about your website visitors.
- How does Umami handle user privacy?
- Umami respects user privacy by providing transparency and control over data collection. It allows you to anonymize IP addresses, honor Do Not Track requests, and provides options for cookie consent management.
- Is Umami suitable for small businesses or personal websites?
- Yes, Umami is well-suited for small businesses, personal websites, and projects of any size that require a privacy-focused analytics solution. I'm also using.
- Does Umami offer real-time analytics?
- Yes, Umami does offer real-time analytics. It provides live updates and real-time tracking of website visitors, allowing you to monitor and analyze user activity as it happens.
- How can I contribute to the Umami Analytics project?
- You can contribute to Umami's development by submitting code improvements, bug fixes, or new features via pull requests on the official Umami GitHub repository