jitsucom / jitsu

Jitsu is an open-source Segment alternative. Fully-scriptable data ingestion engine for modern data teams. Set-up a real-time data pipeline in minutes, not days
https://jitsu.com
MIT License
4.04k stars 287 forks source link

Detect geo from cloudflare headers #1047

Closed ScottEAdams closed 9 months ago

ScottEAdams commented 1 year ago

Similar to #1028 , would be nice to use cloudflare headers when available - https://developers.cloudflare.com/rules/transform/managed-transforms/reference/

cf-ipcity: The visitor's city cf-ipcountry: The visitor's country cf-ipcontinent: The visitor's continent cf-iplongitude: The visitor's longitude cf-iplatitude: The visitor's latitude cf-region: The visitor's region cf-region-code: The visitor's region code cf-metro-code: The visitor's metro code cf-postal-code: The visitor's postal code cf-timezone: The name of the visitor's timezone

vklimontovich commented 9 months ago

We won't do it as a part of core jitsu, but you can easily do so with functions, see ctx.headers