flatironinstitute / stan-playground

Run Stan models in the browser
Apache License 2.0
36 stars 1 forks source link

Add vercel analytics #145

Closed magland closed 4 months ago

magland commented 4 months ago

See https://vercel.com/docs/analytics

Importantly, it only stores anonymized data and does not use cookies

This will help us see the number of unique visitors per day, their browser, their OS, their Country. But note that these pieces of data are not stored jointly... so we just get aggregated plots.

WardBrian commented 4 months ago

I don't have a particularly strong feeling either way with this, but I just want to ask (maybe a stupid question), does this cause any problems if we have users in the EU or covered by other data protection laws?

magland commented 4 months ago

According to this, we don't need to worry about it for Vercel https://posthog.com/blog/best-gdpr-compliant-analytics-tools

magland commented 4 months ago

Do you have an opinion about this @jsoules ?

jsoules commented 4 months ago

Not a strong one. I've used Google Analytics in the past, but that does involve cookies and opt-in for GDPR areas. I don't particularly relish being more tightly bound to the Vercel ecosystem, but I suppose it's easy enough to back out later if we decide that's what's best.

So yeah, I think this is a good idea.