Loading...
Loading...
Compare original and translation side by side
curljqbrew install jqapt install jqbashcurljqbrew install jqapt install jqbashexport POSTHOG_PERSONAL_API_KEY=phx_xxx@currentexport POSTHOG_PERSONAL_API_KEY=phx_xxx@currentundefinedundefined
Expected output:
```json
{
"id": 209268,
"name": "Default project"
}
预期输出:
```json
{
"id": 209268,
"name": "Default project"
}blog_dashboard.json{
"name": "Blog Analytics",
"description": "Track blog performance and reader engagement",
"filter": {"key": "source", "value": "blog"},
"dashboard_id": null,
"insights": [
{"name": "Blog Pageviews (Total)", "type": "pageviews_total"},
{"name": "Unique Blog Readers", "type": "unique_users"},
{"name": "Blog Traffic Trend", "type": "traffic_trend"},
{"name": "Top Blog Posts", "type": "top_pages"}
]
}dashboard_id: nullblog_dashboard.json{
"name": "Blog Analytics",
"description": "Track blog performance and reader engagement",
"filter": {"key": "source", "value": "blog"},
"dashboard_id": null,
"insights": [
{"name": "Blog Pageviews (Total)", "type": "pageviews_total"},
{"name": "Unique Blog Readers", "type": "unique_users"},
{"name": "Blog Traffic Trend", "type": "traffic_trend"},
{"name": "Top Blog Posts", "type": "top_pages"}
]
}dashboard_id: null./scripts/posthog_sync.sh create blog_dashboard.jsonCreating dashboard: Blog Analytics
Dashboard created: ID 1166599
Creating insight: Blog Pageviews (Total)
{id: 6520531, name: "Blog Pageviews (Total)"}
...
Dashboard URL: https://us.posthog.com/project/209268/dashboard/11665991166599209268dashboard_id./scripts/posthog_sync.sh create blog_dashboard.jsonCreating dashboard: Blog Analytics
Dashboard created: ID 1166599
Creating insight: Blog Pageviews (Total)
{id: 6520531, name: "Blog Pageviews (Total)"}
...
Dashboard URL: https://us.posthog.com/project/209268/dashboard/11665991166599209268dashboard_id./scripts/posthog_sync.sh sync blog_dashboard.json./scripts/posthog_sync.sh sync blog_dashboard.json./scripts/posthog_sync.sh update blog_dashboard.json./scripts/posthog_sync.sh update blog_dashboard.json./scripts/posthog_sync.sh export 1166599 > exported_dashboard.json./scripts/posthog_sync.sh export 1166599 > exported_dashboard.json| Field | Required | Description |
|---|---|---|
| Yes | Dashboard name |
| No | Dashboard description |
| No* | Event property filter: |
| No* | URL filter fallback: |
| No | Set to |
| Yes | Array of insight objects |
filterdomain_filter| 字段 | 是否必填 | 描述 |
|---|---|---|
| 是 | 仪表盘名称 |
| 否 | 仪表盘描述 |
| 否* | 事件属性过滤器: |
| 否* | URL过滤器备选: |
| 否 | 创建新仪表盘时设为 |
| 是 | 洞察对象数组 |
filterdomain_filter| Type | Display | Description |
|---|---|---|
| BoldNumber | Total pageview count |
| BoldNumber | Unique visitors (DAU) |
| LineGraph | Traffic over time |
| Table | Top pages breakdown |
| 类型 | 展示方式 | 描述 |
|---|---|---|
| BoldNumber | 总页面浏览量 |
| BoldNumber | 独立访客数(日活用户) |
| LineGraph | 流量趋势(随时间变化) |
| Table | 热门页面细分 |
| Field | Default | Options |
|---|---|---|
| | |
| Auto | |
| | |
| 字段 | 默认值 | 可选值 |
|---|---|---|
| | |
| 自动 | |
| | |
| Variable | Required | Default | Description |
|---|---|---|---|
| Yes | - | Your API key (determines org/project) |
| No | us.i.posthog.com | API host (EU: eu.i.posthog.com) |
| No | us.posthog.com | UI host for dashboard URLs |
| 变量 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|
| 是 | - | 您的API密钥(决定组织/项目) |
| 否 | us.i.posthog.com | API主机(欧盟区域:eu.i.posthog.com) |
| 否 | us.posthog.com | 仪表盘URL对应的UI主机 |
scripts/posthog_sync.shexamples/blog_dashboard.jsonscripts/posthog_sync.shexamples/blog_dashboard.json