I recently set up a very simple analytics tracker ...
# help
j
I recently set up a very simple analytics tracker on my personal homepage, using Supabase functions. It literally just adds a row to a table for each page view, with host, path, referer, etc. I'd also like to include IP address for possible future coarse-grained geolocation but I'm having trouble actually getting that. In my deployed function, I just get 127.0.0.1 for
x-forwarded-for
(which I believe is supposed to have a comma delimited list of every hop), and for
x-real-ip
I get null. In local development is seems to give me a real IP address for x-real-ip. Any way to get the "first" IP address in the chain of requests which is the end user?
n
Hello @jpsimons! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
j
Here's a blog entry I wrote about it: https://royalbarrel.com/notes/2