From b9a4e967056974ae0fa0f23b0e60e73bee7d9ac5 Mon Sep 17 00:00:00 2001 From: Robbie Date: Tue, 12 Nov 2024 18:56:34 +0000 Subject: [PATCH 1/2] Add requirements about session IDs to segment docs --- src/connections/destinations/catalog/posthog/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/connections/destinations/catalog/posthog/index.md b/src/connections/destinations/catalog/posthog/index.md index cfb0650695..95632e5dfe 100644 --- a/src/connections/destinations/catalog/posthog/index.md +++ b/src/connections/destinations/catalog/posthog/index.md @@ -95,3 +95,6 @@ analytics.track('user_signed_up', { $groups: { company: 'Initech' } }) ``` + +## Session Ids +Segment does not include a Session ID with events. This means that events will not have session properties, and will not work with Posthog web analytics. You can fix this by providing your own `$session_id`, see https://posthog.com/docs/data/sessions#custom-session-ids for more details on the required format. From f6895f387959f1a95e0d7588c9efaaa382e5ad73 Mon Sep 17 00:00:00 2001 From: pwseg <86626706+pwseg@users.noreply.github.com> Date: Thu, 23 Jan 2025 15:24:27 -0600 Subject: [PATCH 2/2] add external link --- src/connections/destinations/catalog/posthog/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connections/destinations/catalog/posthog/index.md b/src/connections/destinations/catalog/posthog/index.md index 95632e5dfe..d4fa611dd3 100644 --- a/src/connections/destinations/catalog/posthog/index.md +++ b/src/connections/destinations/catalog/posthog/index.md @@ -96,5 +96,5 @@ analytics.track('user_signed_up', { }) ``` -## Session Ids -Segment does not include a Session ID with events. This means that events will not have session properties, and will not work with Posthog web analytics. You can fix this by providing your own `$session_id`, see https://posthog.com/docs/data/sessions#custom-session-ids for more details on the required format. +## Adding custom session IDs +Segment doesn't include a Session ID with events. This means that events don't have session properties and won't work with PostHog web analytics. As an alternative, you can provide your own `$session_id`. For more information on formatting the session ID, see [PostHog's custom session IDs](https://posthog.com/docs/data/sessions#custom-session-ids){:target="_blank"} documentation.