From 2b2092e459922f2b5f8dabdf6c0ded2550e5d67d Mon Sep 17 00:00:00 2001 From: Anton Elmanov <45532870+antelman107@users.noreply.github.com> Date: Thu, 24 Oct 2024 11:36:24 +0300 Subject: [PATCH] feat: segment track IPs (#298) resolves https://github.com/neondatabase/cloud/issues/17309 IP address is collected by Segment itself with `context: {direct: true}`, confirmed in Segment debugger. --- src/analytics.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/analytics.ts b/src/analytics.ts index 3cda54e..377b3db 100644 --- a/src/analytics.ts +++ b/src/analytics.ts @@ -74,6 +74,9 @@ export const analyticsMiddleware = async (args: { ci: isCi(), githubEnvVars: getGithubEnvVars(process.env), }, + context: { + direct: true, + }, }); };