📉 Amplitude
Amplitude product analytics — track events, analyze user behavior, run cohort analysis, manage user properties, and query funnel/retention data via the Amplitude API.
Features
- - Event tracking — log user events with properties
- User analytics — active users, sessions, engagement
- Funnel analysis — conversion through event sequences
- Retention analysis — user return rates over time
- Cohort management — create and manage user cohorts
- User properties — set and query user attributes
- Revenue analytics — LTV, ARPU, revenue tracking
- Segmentation — query by properties and events
- Event segmentation — event counts and breakdowns
- Dashboard export — export chart data
Requirements
| Variable | Required | Description |
|---|
| INLINECODE0 | ✅ | API key/token for Amplitude |
| INLINECODE1 |
✅ | Amplitude secret key for Export/Dashboard APIs |
Quick Start
CODEBLOCK0
CODEBLOCK1
CODEBLOCK2
CODEBLOCK3
Commands
track
Track an event.
CODEBLOCK4
track-batch
Track batch events.
CODEBLOCK5
identify
Set user properties.
CODEBLOCK6
active-users
Get active user counts.
CODEBLOCK7
events
Get event data.
CODEBLOCK8
funnel
Run funnel analysis.
CODEBLOCK9
retention
Retention analysis.
CODEBLOCK10
cohorts
List cohorts.
CODEBLOCK11
cohort-get
Get cohort details.
CODEBLOCK12
revenue
Revenue analysis.
CODEBLOCK13
user-search
Search for a user.
CODEBLOCK14
user-activity
Get user activity.
CODEBLOCK15
segments
Event segmentation query.
CODEBLOCK16
Output Format
All commands output JSON by default. Add --human for readable formatted output.
CODEBLOCK17
Script Reference
| Script | Description |
|---|
| INLINECODE16 | Main CLI — all Amplitude operations |
Data Policy
This skill never stores data locally. All requests go directly to the Amplitude API and results are returned to stdout. Your data stays on Amplitude servers.
Credits
Built by
M. Abidi |
agxntsix.ai
YouTube |
GitHub
Part of the
AgxntSix Skill Suite for OpenClaw agents.
📅 Need help setting up OpenClaw for your business? Book a free consultation
📉 Amplitude
Amplitude 产品分析——通过 Amplitude API 追踪事件、分析用户行为、运行群组分析、管理用户属性以及查询漏斗/留存数据。
功能特性
- - 事件追踪 — 记录带有属性的用户事件
- 用户分析 — 活跃用户、会话、参与度
- 漏斗分析 — 事件序列的转化率
- 留存分析 — 用户随时间变化的回访率
- 群组管理 — 创建和管理用户群组
- 用户属性 — 设置和查询用户属性
- 收入分析 — LTV、ARPU、收入追踪
- 细分分析 — 按属性和事件查询
- 事件细分 — 事件计数和分解
- 仪表板导出 — 导出图表数据
环境要求
| 变量 | 必填 | 描述 |
|---|
| AMPLITUDEAPIKEY | ✅ | Amplitude 的 API 密钥/令牌 |
| AMPLITUDESECRETKEY |
✅ | 用于导出/仪表板 API 的 Amplitude 密钥 |
快速开始
bash
追踪一个事件
python3 {baseDir}/scripts/amplitude.py track {user
id:user123,eventtype:purchase,event_properties:{amount:29.99}}
bash
批量追踪事件
python3 {baseDir}/scripts/amplitude.py track-batch events.json
bash
设置用户属性
python3 {baseDir}/scripts/amplitude.py identify {user
id:user123,userproperties:{plan:pro,company:Acme}}
bash
获取活跃用户数量
python3 {baseDir}/scripts/amplitude.py active-users --start 2026-01-01 --end 2026-02-01
命令
track
追踪一个事件。
bash
python3 {baseDir}/scripts/amplitude.py track {user
id:user123,eventtype:purchase,event_properties:{amount:29.99}}
track-batch
批量追踪事件。
bash
python3 {baseDir}/scripts/amplitude.py track-batch events.json
identify
设置用户属性。
bash
python3 {baseDir}/scripts/amplitude.py identify {user
id:user123,userproperties:{plan:pro,company:Acme}}
active-users
获取活跃用户数量。
bash
python3 {baseDir}/scripts/amplitude.py active-users --start 2026-01-01 --end 2026-02-01
events
获取事件数据。
bash
python3 {baseDir}/scripts/amplitude.py events --start 2026-01-01 --end 2026-02-01 --event purchase
funnel
运行漏斗分析。
bash
python3 {baseDir}/scripts/amplitude.py funnel {events:[{event
type:pageview},{event
type:signup},{eventtype:purchase}]} --start 2026-01-01 --end 2026-02-01
retention
留存分析。
bash
python3 {baseDir}/scripts/amplitude.py retention --start 2026-01-01 --end 2026-02-01
cohorts
列出群组。
bash
python3 {baseDir}/scripts/amplitude.py cohorts
cohort-get
获取群组详情。
bash
python3 {baseDir}/scripts/amplitude.py cohort-get abc123
revenue
收入分析。
bash
python3 {baseDir}/scripts/amplitude.py revenue --start 2026-01-01 --end 2026-02-01
user-search
搜索用户。
bash
python3 {baseDir}/scripts/amplitude.py user-search user@example.com
user-activity
获取用户活动。
bash
python3 {baseDir}/scripts/amplitude.py user-activity user123
segments
事件细分查询。
bash
python3 {baseDir}/scripts/amplitude.py segments --event purchase --group-by platform --start 2026-01-01 --end 2026-02-01
输出格式
所有命令默认输出 JSON 格式。添加 --human 参数可输出可读的格式化内容。
bash
JSON(默认,适用于程序化使用)
python3 {baseDir}/scripts/amplitude.py track --limit 5
可读格式
python3 {baseDir}/scripts/amplitude.py track --limit 5 --human
脚本参考
| 脚本 | 描述 |
|---|
| {baseDir}/scripts/amplitude.py | 主 CLI — 所有 Amplitude 操作 |
数据政策
此技能绝不将数据存储在本地。所有请求直接发送至 Amplitude API,结果返回至标准输出。您的数据保留在 Amplitude 服务器上。
致谢
由
M. Abidi 构建 |
agxntsix.ai
YouTube |
GitHub
属于面向 OpenClaw 代理的
AgxntSix 技能套件 的一部分。
📅 需要帮助为您的企业设置 OpenClaw? 预约免费咨询