timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
8.45k stars 1.96k forks source link

docs: add example of src overwriting for US umami.is tracking #822

Closed sgardn closed 7 months ago

sgardn commented 7 months ago

Context

Choosing to store Umami tracking data in the US (instead of the EU, which may have been the historic default) actually requires loading a different script and setting a different CSP header (since the data instead goes to us.umami.is instead of analytics.umami.is).

I wasn't able to tell this without a little poking around and pestering folks on Discord / reading of https://github.com/timlrx/pliny to realize there was an option to do so.

Discord thread: https://discord.com/channels/951898446804172840/1195052582645801010/1195055451285504040

I'm happy to tweak the language or make other updates, but this at least would give someone a thread to pull on. I spent a fair amount of time trying to figure out what could be going wrong since Umami handles the (misdirected) tracking requests fine (responds with 200 for the send call), but then no data ends up populating in the dashboard.

vercel[bot] commented 7 months ago

Someone is attempting to deploy a commit to a Personal Account owned by @timlrx on Vercel.

@timlrx first needs to authorize it.

rnkdev commented 7 months ago

Really love your change was also thinking of pushing this. I had to contact Umami cloud support before they confirmed I was sending data to EU.. Perhaps we can also send feedback to Umami to highlight this either as FAQ or in docs.

rhanni commented 7 months ago

I was also running into this missing data problem and sent a support request to Umami. It was so strange since all requests to send data to Umami were successful. Umami support got back to me and confirmed my data was being sent to the EU region. Thanks for submitting a PR!

timlrx commented 7 months ago

Sorry for the late reply but thanks for the additional note. It seems like many people found it useful as well :)