本文へスキップ
Skillpedia
データベース41k · #6844

adding-warehouse-person-properties

できること

このスキルは、同期されたウェアハウスのテーブルの列を、PostHogの人やグループのプロパティに対応させます。顧客情報をウェアハウスに保管していて、それをターゲティングや分析に使いたいチーム向けです。

使う場面

  • ✓請求テーブルのプランやレベル、収益を、人に追加したいとき。
  • ✓ウェアハウスのデータを使って、フィーチャーフラグやコホートをターゲティングしたいとき。
  • ✓ウェアハウスの値が人に表示されず、原因を調べる必要があるとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/PostHog/posthog/blob/master/products/customer_analytics/skills/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Stripeのテーブルからプランのレベル列を、各人のプロパティとして追加し、フィーチャーフラグでターゲティングできるようにしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

元のテーブル、対応するIDの列、コピーする列を選びます。その後、PostHogはそれらの列を通常の人またはグループのプロパティとして書き込みます。このプロパティは他のプロパティと同じように動作します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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
よくある質問

先にウェアハウスのソースを接続する必要がありますか?

はい。ソースは既に存在し、同期している必要があります。接続は別の設定の手順です。

これらのプロパティはどこで使えますか?

フィーチャーフラグ、コホート、インサイト、アンケート、ワークフローなど、人やグループのプロパティが使える場所ならどこでも使えます。

値は自動で更新されますか?

はい。ソースのテーブルが同期するスケジュールに従って更新されます。

詳細

作者による元の説明

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

人気

GitHubのスター
41k
ランキング
#6844
ライセンス
—
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル