> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/tracking/mobile-app-tracking/set-up-a-mobile-app.md).

# 设置移动应用

<a href="https://pxa.impact.com/student/activity/1117597?sid=0c0e3e5c-54c9-4435-9bee-ebcdccb7f292&#x26;sid_i=0?utm_source=app.impact.com&#x26;utm_medium=owned-platform&#x26;utm_content=tra-350&#x26;utm_campaign=help-center" class="button primary">参加 PXA 课程</a>

如果您计划在移动应用中跟踪事件，则需要在 impact.com 平台中进行配置。

#### 创建移动应用跟踪器

在您可以在 impact.com 上为其添加跟踪器之前，您需要先创建一个应用，并使其可在应用商店中供安装。

1. 从顶部导航栏中选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在右侧，位于 *跟踪*下，选择 **移动应用**.
3. 在右上角，选择 **添加移动应用**.
4. 在 *移动应用设置* 页面上，填写以下各部分中的字段：

<details>

<summary>移动应用信息参考</summary>

* **名称：** 为您的应用添加一个名称。
* **代码：** 添加自定义代码，作为 `EventTypeIds` ，用于您的应用发送转化数据时。（例如：123、456、789）。
* **平台：** 指定应用平台。
* **其他版本：** 如果您已为其他平台创建了移动应用跟踪器，您可以在旁边的框中选择它们 *其他版本*.
* **Bundle ID（iOS）/ 包名（Android）：** 输入您应用的唯一标识符（例如， `com.example.application`).
* **SHA256 指纹（Android）：** 输入您应用签名证书的 SHA256 指纹（例如， `14:6D:E9:83:C5:73:06:50...` 等）。
* **团队 ID（iOS）：** 输入用于标识您应用的由两部分组成的字符串（例如 `ABC123.com.example.application`).
* **App ID（iOS）：** 输入您应用的唯一 iTunes 标识符（例如，iBooks 的 iTunes 标识符为 *iBooks* 应用为 `364709193`)
* **下载 URL：** 输入应用可从 App Store（iOS）或 Play 商店（Android）下载的直接下载 URL。

</details>

<details>

<summary>退回处理参考</summary>

选择您希望如何处理行动撤销和修改。

* **使用待支付金额页面处理退回：** 如果您希望在 [impact.com 界面](/brand/zh/what-would-you-like-to-learn-about/platform-features/actions-and-payouts/payouts/approve-reverse-and-modify-pending-payouts-for-actions.md)中处理行动修改，请选择此选项。
* **自动处理退回（高级）：** 如果您希望使用 API、FTP 或 SMTP 来自动处理行动修改，请选择此选项并选择以下自动化方法之一：
  * **使用系统 Web 服务（API）：** 使用我们的 API 直接向 impact.com 提交转化数据。您需要您账户的 API 访问凭据。
  * **将文件上传到系统 FTP 服务器：** 使用我们的 FTP 服务器通过 CSV 文件提交转化数据。
  * **从您自己的 FTP 服务器拉取文件：** 使用您自己的 FTP 服务器，并让 impact.com 拉取您的转化数据。我们需要以下信息：
    * **服务器 URL** — 选择正确的协议前缀并输入服务器 URL。
    * **用户名** — 输入 impact.com 可用于访问您 FTP 服务器的用户名。
    * **密码** — 输入 impact.com 可用于的 FTP 账户密码。
    * **端口** — 输入连接到您的 FTP 服务器时使用的端口。
    * **目录** — 输入 impact.com 可以找到该文件的目录（例如， `/impact/returns`).
  * **将文件通过电子邮件发送到系统 SMTP 服务器：** impact.com 将提供一个唯一的电子邮件地址，您可以将转化数据作为 CSV 附件发送到该地址。

</details>

<details>

<summary>高级设置参考</summary>

如果您想添加高级设置，请选择 **显示高级设置**.

* 如果您想添加订单 ID（OID）重复，请切换 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[打开开关] 指定 OID 重复窗口**，然后添加重复窗口。
* 如果您想添加客户成本，请切换 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[打开开关] 添加客户成本**，然后选择您希望如何加入客户成本。
* 如果您想添加开放式锁定，请切换 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[打开开关] 通过 Web 服务或批量文件上传更新状态来锁定行动**.

</details>

5. 选择 **保存并继续** 以继续配置应付事件。
6. 该 *应付事件* 页面是您可以配置希望支付佣金的应用事件的位置。

<details>

<summary>应付事件参考</summary>

* **应用安装：** 安装会被默认跟踪并可支付。（如果您使用第三方 MMP，则需要将应用安装作为应用内事件上报，如下方选项所述。）
* **应用内事件：** 配置您将为其支付的应用内事件：
  * **事件显示名称** — 输入一个描述性事件显示名称，该名称将出现在您的模板条款中。
  * **事件代码** — 输入 impact.com 将从您的 MMP 接收的区分大小写的事件代码。
  * **记账规则** — 选择 *安装*，这将把首个安装该应用的合作伙伴记为贡献方；或者选择 *最后点击*，这将把转化前对您的应用产生最后一次引荐点击的合作伙伴记为贡献方。

</details>

7. 选择 **保存**.

#### 管理您的移动应用跟踪器

您可以通过多种方式管理现有的移动应用跟踪器：

<details>

<summary>编辑移动应用跟踪器</summary>

1. 从顶部导航栏中选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在右侧，位于 *跟踪*下，选择 **移动应用**.
3. 在您要编辑的跟踪器旁边，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FMLtRUwWz0pujlfmYWOgg%2FMoreVN.svg?alt=media\&token=03a3c355-a347-4207-baf7-c44fadf6d080) **\[更多] → 查看/编辑**.
4. 进行您想要的更改。
5. 选择 **保存**.

</details>

<details>

<summary>向跟踪器添加更多应付事件</summary>

1. 从顶部导航栏中选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在右侧，位于 *跟踪*下，选择 **移动应用**.
3. 在您要添加处理代码的跟踪器旁边，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FMLtRUwWz0pujlfmYWOgg%2FMoreVN.svg?alt=media\&token=03a3c355-a347-4207-baf7-c44fadf6d080) **\[更多] → 管理事件**.
4. 在右上角，选择 **添加事件**.
5. 在 *应用内事件*下，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-6282f271b7521383385339243690b303086736d9%2F3b5a585dd2895bdf1c30d1236c72ba590dddd18717863b27074c8d313d05ae20.svg?alt=media) **\[添加另一个事件]**.
   * 输入 **事件显示名称**。这是会显示在合同和模板条款中的名称。
   * 输入 **事件代码**。这是您的应用在所跟踪事件发生时传递的代码。
   * 选择 **记账规则** 从下拉菜单中。您可以通过安装或最后一次点击来记账该事件。
6. 选择 **保存**.

</details>

<details>

<summary>为移动跟踪器添加处理代码</summary>

1. 从顶部导航栏中选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在右侧，位于 *跟踪*下，选择 **移动应用**.
3. 在您要添加处理代码的跟踪器旁边，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FMLtRUwWz0pujlfmYWOgg%2FMoreVN.svg?alt=media\&token=03a3c355-a347-4207-baf7-c44fadf6d080) **\[更多] → 处理代码**.
4. 在右上角，选择 **添加处理代码**.
5. 在 *处理代码*，选择或输入您要使用的代码。
   * 如果您想使用常用代码，请从下拉菜单中选择。
   * 如果您想创建自己的代码，请在旁边输入名称 *处理名称*.
6. 在 *状态转换*，选择您希望执行该行动的合作伙伴看到什么。
7. 在 *行动更改*，选择在选中此代码时将发生什么行动（如果有）。
8. 选择 **保存**.

</details>

<details>

<summary>删除移动跟踪器</summary>

1. 从顶部导航栏中选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在右侧，位于 *跟踪*下，选择 **移动应用**.
3. 找到您要删除的移动跟踪器，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FMLtRUwWz0pujlfmYWOgg%2FMoreVN.svg?alt=media\&token=03a3c355-a347-4207-baf7-c44fadf6d080) **\[更多] →** **删除**.
4. 阅读警告消息，然后选择 **我明白了，继续**.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/tracking/mobile-app-tracking/set-up-a-mobile-app.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
