3 ms·
Currently we use your browser's language and time zone settings to derive applicable legal regimes such as GDPR, CPRA, and LGPD. This method even supports the
by Sephr 5y ago
Currently we use your browser's language and time zone settings to derive applicable legal regimes such as GDPR, CPRA, and LGPD.
This method even supports the nuance of detecting a EU-likely user vacationing in California, affording them both CPRA and GDPR protections. You can try out this API by typing `await airgap.getRegimes()` in your browser console on this blog post.
This method won't scale forever as more states and countries enact new privacy laws so we do plan on eventually falling back to IP geolocation as well.
- TeMPOraL 5y agoFor those of us less fluent in modern JS, the console command should be: await airgap.getRegimes() to unwrap the promise and display the regime set directly in the output :). Also, I can confirm it correctly identifies the regime applicable to me (GDPR). EDIT: I played a bit more with your blog post, after disabling my Adblock and tracking protection features in Firefox. It seems you're dogfooding your system here and now; I don't see any analytics calls happening beyond the scripts being loaded, and I also see a bunch of requests being trapped by airgap (I found it by doing airgap.export("foo") in the console). Nice work! (So, what kind of analytics are you getting from this blogpost without asking? ;))