Analytics with Umami
Friday, September 5, 2025
I'm thinking of using third party to check how many visitors to my new blog. Of course, the first thing that came to mind is Google Analytics. But I'm wondered if there's a good alternative. In online forum, some suggested Umami, so I decided to sign up.
The process from sign up to integration was smooth. It took me less than 5 minutes from zero to running. One thing that I need to adjust is because I used Nuxt, I had to configure Umami's script tag from:
<script defer src="https://cloud.umami.is/script.js" data-website-id="..."></script>
to the following, which is to be placed under app.vue:
<script setup lang="ts">
useHead({
...
script: [
{
defer: true,
src: 'https://cloud.umami.is/script.js',
'data-website-id': '...'
}
]
})
</script>
For more information:
- Nuxt
useHead: https://nuxt.com/docs/4.x/getting-started/seo-meta#usehead - Umami: https://umami.is/