DEV Community

Cover image for Setting up Umami with Vercel and Supabase

Setting up Umami with Vercel and Supabase

Jakob Bouchard on February 02, 2021

Let me start by saying that this post is based on the procedure from this Tweet. I am only providing a detailed post with screenshots for beginners...
Collapse
 
argus profile image
Argus

Unable to login with password umami for admin user, i get this error :

{"error": {"code": "500", "message": "A server error has occurred"}}

Collapse
 
julimancan profile image
Julian Bustos • Edited

Mine works for a couple of minutes then it stops working..... but same error 500 Failed to load resource: the server responded with a status of 500 () on the dashboard
and on the tracked website i got this error:
POST https://****.vercel.app/api/collect 500

Collapse
 
tegarimansyah profile image
Tegar Imansyah

I also got this error. After opening vercel's deployment functions logs, I realized that my generated password is consist of special characters and prisma failed to parse it. After I change my connection string in vercel with percent encoding, it works as expected.

Ref: stackoverflow.com/questions/636841...

Collapse
 
watheqalshowaiter profile image
Watheq Alshowaiter

in the gatsby plugin gatsby-plugin-umami

  {
    resolve: `gatsby-plugin-umami`,
    options: {
      websiteId: 'UMAMI_WEBSITE_ID',
      srcUrl: 'https://umami.example.com/umami.js',
      includeInDevelopment: false,
      autoTrack: true,
      respectDoNotTrack: true
    },
  },
Enter fullscreen mode Exit fullscreen mode
  1. what should I do to get the websiteId?
  2. and also from I will bring the srcUrl?

I followed along with your tutorial using Vercel and supabase..

Collapse
 
gomflo profile image
Hugo Gomez

Thanks for the post, you have any idea how i can update my umami installation to the latest version? seems like when you deploy to vercel it doesnt "fork" the repository so i cant keep track of the latest changes.

Collapse
 
jakobbouchard profile image
Jakob Bouchard

Hey! Sorry for the late answer, I must've dismissed the notification by accident.
I'm not sure how to update it if it isn't forked. I also had this issue, and ended up recreating the repo and Vercel project because of that.

Collapse
 
yiksanchan profile image
Yik San Chan

Hi Jakob, thanks for the good intro. I wonder what are some features missing from umami at this point compared to Fathom? Thanks!

Collapse
 
jakobbouchard profile image
Jakob Bouchard

I’d say private sharing, email reports, disabling tracking for myself so that I don’t skew the stats, and (it’s minor) 2FA support. A WordPress plugin would be nice too probably, but adding it with the code is easy enough.

Collapse
 
yiksanchan profile image
Yik San Chan

What is private sharing? If you don't mind. Thanks

Thread Thread
 
jakobbouchard profile image
Jakob Bouchard

You can share the stats page, but it requires a password to be seen!

Thread Thread
 
yiksanchan profile image
Yik San Chan

Ah I see, thanks!

Collapse
 
fractal profile image
Fractal

Are you using the same password in the bottom of that query? Is that a random password, or is that a Supabase API key?

Collapse
 
jakobbouchard profile image
Jakob Bouchard

The password created in step 1 is reused in step 3, in the connection field. The hash salt is random however