Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

docs(warehouse): clarify Klaviyo list membership vs subscription consent (#73149)

Luke Beltone6a8d5bd8a87
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/klaviyo/canonical_descriptions.py b/products/warehouse_sources/backend/temporal/data_imports/sources/klaviyo/canonical_descriptions.py
index a29db0b7b3c6..2eea5313a84f 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/klaviyo/canonical_descriptions.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/klaviyo/canonical_descriptions.py
@@ -99,19 +99,37 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {
"organization": "The organization the profile is associated with.",
"title": "The profile's job title.",
"location": "The profile's location details.",
- "properties": "Custom properties set on the profile.",
+ "properties": (
+ "Custom properties set on the profile. Subscription status lives here in the `$consent` array "
+ "— the communication channels (`sms`, `email`, and/or `push`) the profile is currently "
+ "consented to — not in list membership: a profile can belong to a list without being "
+ "subscribed. `$consent_timestamp` records when the profile consented to receive communication, "
+ "but it is not reliably cleared on unsubscribe, so use `$consent`, not `$consent_timestamp`, "
+ "to tell who is currently subscribed."
+ ),
"created": "Time at which the profile was created.",
"updated": "Time at which the profile was last updated.",
"last_event_date": "Time of the profile's most recent event.",
},
},
"list_profiles": {
- "description": "A flat join table mapping which profiles belong to which Klaviyo list. Rows for profiles removed from a list are only pruned by a full refresh.",
+ "description": (
+ "A flat join table mapping which profiles belong to which Klaviyo list. Rows for profiles removed "
+ "from a list are only pruned by a full refresh. List membership is not the same as subscription: "
+ "a profile can be on a list without being subscribed to any channel. To tell which channels "
+ "(`sms`, `email`, and/or `push`) a profile is actually subscribed to, check the `$consent` array "
+ "in the profile's `properties` (in the `profiles` table)."
+ ),
"docs_url": "https://developers.klaviyo.com/en/reference/get_profiles_for_list",
"columns": {
"list_id": "Identifier of the list.",
"profile_id": "Identifier of a profile that is a member of the list.",
- "joined_group_at": "The datetime when the profile most recently joined the list. Updated if the profile re-joins.",
+ "joined_group_at": (
+ "The datetime when the profile most recently joined the list. Updated if the profile re-joins. "
+ "Joining a list does not mean the profile is subscribed: check the `$consent` array in the "
+ "`profiles` table's `properties` for current subscription status. This timestamp often matches "
+ "the profile's `$consent_timestamp`, but not always — do not treat them as interchangeable."
+ ),
},
},
}
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/klaviyo/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/klaviyo/source.py
index 5a3b010e1855..5df090637c51 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/klaviyo/source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/klaviyo/source.py
@@ -135,7 +135,9 @@ Make sure to grant the following read permissions:
return (
"Maps which profiles belong to which list as {list_id, profile_id, joined_group_at} rows. "
"Incremental syncs pick up new joins and re-joins; profiles removed from a list are only "
- "reflected on a full refresh"
+ "reflected on a full refresh. List membership is not the same as subscription: check the "
+ "$consent array in the profiles table's properties column to see which channels (sms, "
+ "email, push) a profile is currently subscribed to"
)
return None