跳转到内容

Braze 连接

Braze connection 让您使用 /users/track API 将玩家数据直接推送到 Braze。每个触发事件都会向 Braze 发送用户属性与自定义事件,以便您根据游戏活动构建细分、触发活动并编排 Canvas 流程。


要求 在哪里找到
Braze REST API Key Braze Dashboard → Settings → API Keys(需要 users.track 权限)
REST Endpoint Braze Dashboard → Settings → API Keys(例如 https://rest.iad-01.braze.com)

  1. 从主导航前往 Connections
  2. 点击 Add Connection 并选择 Braze
  3. 输入您的 API Key 与 REST Endpoint
  4. 保存连接
  5. 将其链接到 stream 并选择触发事件

DailyPlay 通过玩家访问 stream 时传递的 URL 参数在 Braze 中识别用户。Braze 支持两种标识符类型:

URL 参数 Braze API 字段 说明
braze_id braze_id Braze 的内部用户标识符
external_id external_id 映射到 Braze 的您系统中的用户 ID
user_id external_id 别名 — 与 external_id 同等对待

DailyPlay 按优先级检查标识符:braze_id → external_id → user_id。若 URL 参数中都不存在,则使用玩家的 DailyPlay player_uuid 作为 external_id。

https://app.dailyplay.ai/stream/my-org/my-stream?external_id=usr_123

每个触发事件都会用以下自定义属性更新 Braze 中的用户资料:

属性 类型 说明
country string 玩家的国家代码(自动检测)
device_type string 玩家使用的设备类型(例如 mobile、desktop)

所有 DailyPlay 特定属性都分组在用户资料的 dailyplay 对象下:

属性 类型 说明
dailyplay.last_game_id string 最近游玩的游戏 ID
dailyplay.last_stream_name string 游戏所属 stream 的名称
dailyplay.last_stream_slug string Stream 的 URL slug
dailyplay.last_play_date string 上次互动的 ISO 8601 时间戳
dailyplay.stream_<stream_slug> string 为此 stream 记录的事件类型(例如 play_complete)— 适用于漏斗追踪
dailyplay.last_game_score number 玩家分数(仅在 play_complete 事件上)
dailyplay.last_play_duration number 游玩时长(秒)(仅在 play_complete 事件上)