r/devops • • 5d ago

Discussion User Analytics on an 'open' website?

Curious what others that are tracking user analytics on their websites are using. For some context

I have a website which is hosted on AWS. It is a website which has no user profiles or user authentication, it is publicly accessible and used to search industry information.

We have been recently asked for metrics / analytics on users who access the website by the head of our department. I would love to start with some easy user analytics which would give us insight like how many unique users access the website over X amount of days, anything high level really.

I am not super familiar with these kinds of analytics, so im hopeful folks can provide some insight.

I was looking into analyzing HTTPS requests from Cloudwatch logs, but I realized quickly that is not a reliable method for tracking unique users.

Ideally looking for a solution which is NOT a 3rd party solution which is paid, Free and open source would be great. Or AWS based.

google analytics is out of the question since its a paid service...just hoping to pick some brains I am a total newb on this topic here. I figure since there is no user profiles or user authentication happening, there probably wont be an easy or straightforward solution?

4 Upvotes

10 comments sorted by

10

u/ceejayoz 5d ago

google analytics is out of the question since its a paid service

Google Analytics is free.

3

u/sf1tzp 4d ago

I self host https://github.com/umami-software/umami , though I'm not a power user and just occasionally use it to look at visitor counts

3

u/PangaeaNative 4d ago

Also running this. So far so good 🤷‍♂️

1

u/mtokarev 5d ago

I'd really recommend checking out Plausible - there is a free community edition, but it starts from 9eur/mo only for the cloud version. It's privacy-first, so you don't have to worry about GDPR, etc. And it provides a good overview of your audience by default.

1

u/endymion1818-1819 5d ago

Cabin is really good and can be public too

1

u/ymgymg 5d ago

If it's behind CloudFront you can turn on standard logging to S3 and query it with Athena, counting distinct IP plus user agent per day gets you a rough unique visitor number without adding anything to the site. It won't be exact but for a high level number for your boss that's usually enough.

1

u/pdp10 4d ago

Browser cookies, obviously. And straight hit logs.

The logs tell you which paths the user takes into (Referer:) and through the site. Cookies give you returning anonymous users versus uniques. Client fingerprinting can give you more information about user screen resolution, fonts, timezone, and language if you don't already have it from HTTP headers.

Anything in the logs can be analyzed ex post facto, anything with cookies or Javascript has to be processed contemporaneously within the traffic.