When we don't know, we end up with Schrödinger's Website, a situation in which our site & our client relationship are alive and dead at the same time.
Sometimes we need to track...
Cookies aren't evil...
...and they're especially delicious with milk.
Cookies were invented first, as a means to pass text key-value pairs between the server and the browser, and for the browser to remember them.
This made much of the web possible, including logins & referral tracking. But it also came with abuse and a megaswarm of ad trackers.
Web Storage was invented later and is based on a similar concept, but with slightly different goals.
Here are some of the key ways web storage differs;
Web storage was just so... clean. It was all we needed.
This demo currently focuses on web storage, but if you look at the underlying user-tracking library, you can easily change that to cookies as well.
In this demo, we're using WFU's new webflow-track.js library, which means hiding and showing things is as simple as adding a custom attribute.
Have a look at the page & site source code to see how the different events are tracked;
Look at the elements in the Tracking Status section above in order to see how the custom attribute is applied.
Sure, you can hide stuff...
Sure, you could even build a pseudo-login system...
But that data is still there, waiting for anyone with a mind to look. Don't try to hide bank account logins, nuclear codes, or your Grandma's butt.
No one should see those things.
Except Grandpa.
Of course! That's why we're called developers.
Reach out if you need some programming work on your project.