设置 Mixpanel

Mixpanel 是一家已与 Adjust 集成的数据分析合作伙伴。我们的集成允许 Mixpanel 通过自动回传接收 Adjust 监测的数据。您可以使用合作伙伴的工具进行数据分析并获取洞见。

在本文中了解如何为您的应用设置 Mixpanel 监测,其中包括激活集成,以及选择 Adjust 可以与 Mixpanel 分享的数据。

操作前须知

要求

iOS / Android / Windows / Unity / React Native / Flutter / Adobe Air / Cordova / Marmalade / Xamarin / Cocos2d-x / Titanium / Corona

凭证

TOKEN

  • 如需帮助查找凭证,请联系您的 Mixpanel 代表。

在 Campaign Lab 中选择 Mixpanel 和应用

  1. 找到 Campaign Lab​ ,选择 合作伙伴​ 。
  2. 选择 新合作伙伴​ > Mixpanel​ 。选择 下一步​ 进入下一界面。
  3. 应用选择​ 界面选择要创建链接的应用,启用集成来与 Mixpanel 分享数据。
  4. 选择 下一步​ 。

启用数据分享

启用数据分享以激活与 Mixpanel 的集成。要启用数据分享:

  1. 输入您的 TOKEN。

启用与 Mixpanel 的数据分享后,Adjust 会默认自动向 Mixpanel 发送以下数据:

  • 安装
  • 卸载
  • 重装
  • 重装再归因
  • 再归因
  • 事件

设置数据分享

如果您的多平台应用启用了多个平台的数据分享,那么可以:

  1. 通过选择 使用平台特定设置​ 来在平台层级区分数据共享设置。
  2. 通过选择 使用全局设置​ 来为多个平台应用相同的数据共享设置。

哪些数据会默认分享?​ 部分, 查看 Adjust 默认与 Mixpanel 分享的活动:

  • 安装
  • 卸载
  • 重装
  • 重装再归因
  • 再归因
  • 事件

发送额外数据

选择您想通过回传与 Mixpanel 分享的数据量和数据类型。Mixpanel 可能会使用此信息来优化表现。

要发送额外数据,您可以查看并自定义以下选项:

应用内收入 (来自应用内购买)

通过应用内收入分享,Mixpanel 可以接收收入金额以及您的收入事件数据。您需要映射能产生收入的事件,才能分享该数据。

映射参数

要与 Mixpanel分享自定义数据,您通常需要映射参数。

映射事件

将您想分享的事件映射到 Mixpanel 可以接收的值。未映射事件的数据不会被发送至 Mixpanel。

映射事件​ 中,按照以下步骤选择要直接发送至 Mixpanel 的应用内事件。

  1. 选择 映射事件​ 。
  2. Adjust 事件​ 列表中,选择要与 Mixpanel 分享的 Adjust 事件。
  3. 合作伙伴事件​ 列表中,选择或输入要映射到 Adjust 事件的自定义事件名称。您可能需要将一个事件映射到多个值。
  4. 选择 确认​ 。

现在 Mixpanel 将接收每个关联事件的应用内事件数据。

映射参数

合作伙伴参数 (在 Adjust SDK 4.0+ 版本中提供) 允许 Adjust 从您的应用中收集自定义数据点,并将其发送至 Mixpanel。借此,Mixpanel 可以接收每个已关联事件的自定义事件详情。

在向 Adjust SDK 添加新的合作伙伴参数之前,请确保现有的合作伙伴参数均不符合您的要求。

如需与 Mixpanel 分享合作伙伴参数,请遵循以下步骤。

  1. 在 Adjust SDK (iOS安卓) 中设置合作伙伴参数。
  2. 勾选 参数数据分享​ 复选框。
  3. 映射您的事件。
请注意:

如果您在 Adjust SDK 中设置了合作伙伴参数而没有在控制面板中设置参数分享,那么 Adjust 会按照 Adjust SDK 中的名称发送参数。

为您的应用启用 Mixpanel

设置概览​ 界面,您可以检查自己的选择,也可以返回并更改以下内容:

  • 所选应用
  • 数据分享选项

选择 启用合作伙伴​ ,为您的应用启用 Mixpanel 。数据分析合作伙伴不使用推广活动链接。启用合作伙伴后,我们的集成会通过自动回传发送归因和应用内事件数据。

合作伙伴特定设置说明

You should primarily use the Mixpanel server-to-server integration if you are not using the Mixpanel SDK in the app. If you are using the Mixpanel SDK, you can use adjust's in-app attribution data access to inject the attribution data into the Mixpanel SDK locally, as described in the documentation.

Predefined parameters

Mixpanel allows you to send a set of predefined parameters. If you attach any of these parameters to an event in your adjust SDK, these will be forwarded to Mixpanel. You can find out more about attaching partner parameters in the SDK readme specific to the SDK or SDKs you are working with. Below is a list of the defined parameters that Mixpanel accepts:

Parameter key > Value

  • product_id > product ID of a transaction
  • product_spec > product specification

If you would like to find out more about how to leverage this integration for your use cases, check out our one pager with Mixpanel . In case of any questions related to the information provided on the one pager, please reach out to partners@adjust.com .

Mixpanel only accepts callbacks that contain their distinct ID. To send the Mixpanel's distinct ID called "mixpanel_uuid" in your callbacks, set it up as a session partner parameter​ in the Adjust SDK as "mixpanel_uuid".

The current flow must look like this:

On the Mixpanel side:

  • The user downloads the app (has not signed up)
  • Mixpanel is initialized and a random distinct ID is generated (random12345)
  • SDK tracks a few events under distinct_id random12345
  • User signs up as email(USER-A), you call identify(USER-A)
  • SDK tracks events moving forward as email(USER-A)
  • The server merges events from email(USER-A) and random12345

Proposed solution on Adjust side

  • The client reads Mixpanel distinct_id (random12345 for example)
  • The client sends random12345 to Adjust as a session partner parameter​ before the launch of Adjust SDK
  • Adjust will send install/events using random12345 so everything is under 1 profile.

For more information about this and any other setup requirements, please contact your Mixpanel representative.

转发给 Mixpanel 的所有参数列表

Mixpanel 要求 Adjust 在回传中发送以下参数 (数据点):

占位符信息
{android_id}安卓 ID(仅限安卓设备)
{gps_adid}Google Play 应用商店广告 ID
{idfa}广告主 ID(仅限 iOS 设备)
{idfv}供应商的大写 iOS ID
{ip_address}设备 IP 地址
{os_name}设备操作系统
{revenue_usd}以美元计算的收入
{adgroup_name}广告组名称,取自跟踪链接
{campaign_name}推广活动名称,取自跟踪链接
{created_at}活动时间戳
{creative_name}素材名称,取自跟踪链接
{network_name}渠道名称,取自跟踪链接