Simpler GDPR friendly implementation for Next.js + Tinybird #35
grempe
started this conversation in
Show and tell
Replies: 1 comment
-
This is great, thanks a lot @grempe! 🙌 We’re considering adding an |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Following up on my suggestions in this feature request:
#32
Summary
I have created an alternative implementation of the GDPR first-party tracker script meant for use in Next.js apps.
I'd like you to consider incorporating this into this repo and suggesting this as the primary way to host such a setup on Vercel/Next.js as I think its both easier to understand and easier to setup than the current middleware code. It is also safer, and saves unnecessary request to Tinybird.
Benefits
pages/api/tracking
path on your application.I wanted to see if there is any feedback about the implementation approach taken in the following repository.
https://github.com/grempe/nextjs-tinybird-example
I think what should ultimately happen is that this should be incorporated into this repo as the suggested approach for anyone using Next.js apps who want to use the privacy and GDPR friendly tracking enabled by this starter kit.
The current middleware approach still serves a useful function for those who do not use Next.js, but who want a first-party cookie proxy to Tinybird.
There are two main files to look at in the repo:
Cheers.
Beta Was this translation helpful? Give feedback.
All reactions