Aller au contenu
Skillpedia
Bases de données41k · #6844

adding-warehouse-person-properties

Ce qu’il fait

Cette skill associe des colonnes d'une table d'entrepôt synchronisée à des propriétés de personne ou de groupe dans PostHog. Elle s'adresse aux équipes qui conservent les informations clients dans un entrepôt et veulent les utiliser pour le ciblage et les analyses dans PostHog.

Quand l’utiliser

  • ✓Quand vous voulez ajouter le niveau d'abonnement ou le chiffre d'affaires de vos tables de facturation à vos personnes.
  • ✓Quand vous voulez cibler un feature flag ou une cohorte à partir de données qui se trouvent dans votre entrepôt.
  • ✓Quand les valeurs de l'entrepôt n'apparaissent pas sur les personnes et que vous devez en trouver la raison.

Lien du skill

https://github.com/PostHog/posthog/blob/master/products/customer_analytics/skills/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/PostHog/posthog/blob/master/products/customer_analytics/skills/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Ajoute la colonne du niveau d'abonnement de ma table Stripe à chaque personne dans PostHog, pour pouvoir les cibler avec des feature flags.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Vous choisissez la table source, la colonne d'identifiant correspondante et les colonnes à copier. PostHog écrit ensuite ces colonnes comme des propriétés normales de personne ou de groupe, qui fonctionnent comme toute autre propriété.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Adding warehouse person and group properties

A warehouse property mapping reads a synced warehouse table and writes chosen columns onto people or groups. Each row is matched to a person by a distinct ID column, or to a group by a group key column. The mapped columns are then written as ordinary person properties ($set) or group properties ($groupidentify).

The result is not a separate kind of property. After the first sync the values behave like any other person or group property, so they work in feature flags, cohorts, insights, surveys, and replay filters. See references/where-they-can-be-used.md for the full surface list and the caveats that matter per surface.

In the UI this lives at Data > Warehouse properties, with a Persons tab and a Groups tab.

When to use this skill

  • "Add plan tier from my Stripe table to my people"
  • "I want to run a feature flag only for customers with ARR over 50k"
  • "Sync my Postgres accounts table onto organizations"
  • "Why isn't my warehouse property showing up on people?"
  • "Backfill the warehouse property I just added"

Use a different skill when:

  • The warehouse source does not exist yet. Connect it first with setting-up-a-data-warehouse-source.
  • The user wants a Customer analytics account property. That target reads a materialized view, not a synced table, and uses saved_query + source_column instead of the column map below.
  • The user only wants to query warehouse data. Join it in HogQL instead of writing properties onto people.

Prerequisites

Check these before you start. Each one produces a confusing failure later if it is missing.

Requirement Why How it fails
The warehouse-person-properties feature is enabled for the project Gates the whole feature Definition create rejects a person or group target; sync and backfill return 400
A synced warehouse table Only tables imported by a data warehouse source carry the schema a source binds to Views, saved queries, and materialized views cannot be used for person or group targets
A column holding a real person distinct_id, or a real group key Rows are matched on this column Runs complete with a high skipped_missing_person count and no properties change
The caller has warehouse source editor access Mapping a table drives its billable source Create is rejected even when the caller holds account:write
For group targets: the groups paid feature, an existing group type, and group:read / group:write Group properties are keyed per group type The Groups tab is hidden; group tools reject the call

Tools

Tool Purpose
external-data-schemas-list Find the table and its schema id. The schema id is what a source binds to
query (HogQL) Inspect columns and sample the key column before you map anything
custom-property-definitions-create Create the mapping's definition with target_type of person or group
custom-property-sources-create Bind the definition to the warehouse table and column map
custom-property-sources-list / -retrieve See sync status, schedule, and the latest run
Questions fréquentes

Faut-il d'abord connecter une source d'entrepôt ?

Oui. La source doit déjà exister et se synchroniser. La connecter est une étape distincte.

Où puis-je utiliser ces propriétés ?

Partout où les propriétés de personne et de groupe fonctionnent, comme les feature flags, les cohortes, les insights, les sondages et les workflows.

Les valeurs se mettent-elles à jour automatiquement ?

Elles se mettent à jour selon le calendrier de synchronisation de la table source.

Détails

Description originale de l’auteur

Sync columns from a synced data warehouse table onto PostHog person or group properties, so warehouse data becomes usable anywhere person and group properties already work: feature flag targeting, cohorts, insight filters and breakdowns, surveys, session replay filters, workflows, and the person profile. Use when the user wants to "add a person property from my warehouse", "enrich people with Stripe/Postgres/Salesforce data", "put ARR or plan tier on my persons", "target a feature flag by a warehouse column", "sync warehouse columns onto groups or organizations", or wants to inspect, backfill,

repo: PostHog/posthog

Popularité

Étoiles GitHub
41k
Position au classement
#6844
Licence
—
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires