Now Reading
Utilizing analytics on my web site

Utilizing analytics on my web site

2023-12-14 10:13:56

Posted on:

2 min

On this web site, I write about work as a method of documenting the work I’ve performed and showcasing it with ease. I’m curious to know concerning the quantity of holiday makers interacting with my web site, and the quantity of people that have visited my web site by means of my resume to measure how my job looking progress goes or how properly the ‘Portfolio’ button on my resume is changing.

The above talked about monitoring is one thing that may very well be performed simply by simply sifting by means of request logs to the server which I discover to be best as a result of I’d not need to ship client-side JavaScript printed by a third-party simply to get a number of numbers. initiatives like GoAccess, this looks as if one thing that may very well be achievable. For a use-case this straightforward, it may be a handwritten piece of middleware.

On the time of writing this text, I hosted this web site on Cloudflare simply to get began as rapidly as potential. I observed that Cloudflare Pages has an add-on characteristic known as Cloudflare Web Analytics which claims to be “Privateness-first, light-weight, correct net analytics—without cost”. Here’s what I discovered:

  1. To allow Net Analytics on Cloudflare, it’s essential have a “web site”.
  2. To have a “web site” on Cloudflare, it’s essential have a site registered with the service. You might nonetheless host an internet site utilizing Pages with the free ‘pages.dev’ area, nevertheless it won’t rely.
  3. After registering a “web site” with Cloudflare, you possibly can allow Net Analytics with only a few clicks.

Right here is the place issues weren’t fairly clear, enabling Net Analytics didn’t clearly point out including a JS snippet to the web site mechanically. Whereas testing the web site, I by chance discovered this script by Cloudflare inlined in my HTML and I went to the Cloudflare dashboard to research. Upon looking out, I discovered that for Net Analytics to be server-side, I must improve to the Cloudflare Professional plan. The above darkish patterns made me change off Net Analytics fully and return to one thing I used to be aware of.

The Cloudflare dashboard page showing a button to add Web Analytics to your page.

The details about including a JS snippet to your web site is neatly tucked
away behind a tooltip.

I took up the duty to modify over to a cleaner and extra controllable analytics supplier at Cryptlex in 2022. I evaluated choices like Clarity, and Plausible however caught to PostHog for an extended record of causes together with the truth that it’s open-source, has a large group, and a half-decent JS library. With just a bit configuration, I arrange PostHog to measure web page visits, together with those who go to from my resume utilizing a $resume UTM tag.

See Also

A chart showing the trend of website visitors based on their source. In the past three months, only 1 person has visited the website using the link on the resume.

Expensive recruiters, I hope you click on the Portfolio button on my resume to see
my work intimately.

Takeaways

The above development, to me, isn’t very logically sound. Changing one JS library for monitoring with one other doesn’t repair the truth that this web site wants JS to supply analytics or the truth that the service internet hosting the web site or the analytics may misuse any information they will accumulate concerning the guests.

The potential options I may discover sooner or later may very well be to host this web site on a small Raspberry Pi with server middleware that tracks web page visits and UTM tags.

Source Link

What's Your Reaction?
Excited
0
Happy
0
In Love
0
Not Sure
0
Silly
0
View Comments (0)

Leave a Reply

Your email address will not be published.

2022 Blinking Robots.
WordPress by Doejo

Scroll To Top