DEV Community

0 seconds of 44 minutes, 53 secondsVolume 90%
Press shift question mark to access a list of keyboard shortcuts
00:00
00:00
44:53
 
Cheuk Ting Ho 🐍
Cheuk Ting Ho 🐍

Posted on

1

Web Surgery - Ep.3 - Web tracking and cookie consensus banner

Today I added a GDPR compliance web tracking to my website. If you are using another tracking service (e.g. Google Analytics) that use cookies, I will also show you how to add a banner to get visitors' consensus.

Web tracking service that I use: Fathom Analytics

This site to download the cookie consent banner: osano.com

I got the JavaScript for clearing all cookies from this Stackoverflow thread

Top comments (0)

typescript

11 Tips That Make You a Better Typescript Programmer

1 Think in {Set}

Type is an everyday concept to programmers, but it’s surprisingly difficult to define it succinctly. I find it helpful to use Set as a conceptual model instead.

#2 Understand declared type and narrowed type

One extremely powerful typescript feature is automatic type narrowing based on control flow. This means a variable has two types associated with it at any specific point of code location: a declaration type and a narrowed type.

#3 Use discriminated union instead of optional fields

...

Read the whole post now!

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay