How I self-hosted an analytics platform for my website for free with Umami and Railway

Umami, a self-hosted analytics platform

Background

Google trackers detected on Safari

Start an Umami Project on Railway

Login

Add a website

Next JS app

import Head from ‘next/head’;function MyApp({ Component, pageProps }) {
return (
<>
{process.env.NODE_ENV === ‘production’ &&
<Head>
<script async defer data-website-id=”4fb7fa4c-5b46–438d-94b3–3a8fb9bc2e8b” src=”https://your-umami-app.com/umami.js"></script>
</Head>
}
<Component {…pageProps} />
</>
)
}
export default MyApp

No Social Media trackers!

Language Enthusiast. Programmer.