> For the complete documentation index, see [llms.txt](https://docs.exoclick.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exoclick.com/advertisers/zh/zhuan-hua-gen-zong/gen-zong-shou-ce/cake-tracking.md).

# 如何使用 Cake 跟踪转化

*本指南仅适用于 Cake。如果你想了解 S2S 跟踪的通用步骤，请查看* [*广告主部分*](/advertisers/zh/zhuan-hua-gen-zong/zhuan-hua-gen-zong.md#using-conversion-tracking-api---s2s-recommended)*.*

ExoClick 可让你访问全球流量来源、定向功能、大数据和统计分析工具，以筛选结果并优化你的广告活动。本手册说明在使用跟踪软件 Cake 时，如何在 ExoClick 网络上跟踪转化。为了跟踪你的 Offer，你需要让 Cake 和 ExoClick 通过它们的服务器进行通信。

如果您想获取更多信息，请查看 [Cake 的集成指南。](https://support.getcake.com/support/solutions/articles/5000546121-a-guide-to-event-tracking)

## 步骤 1：为 Postback URL 创建 Goal ID

登录您的 ExoClick 管理面板并前往 **Campaigns > 转化跟踪**。这使您可以创建转化跟踪代码，用于您的 **postback URL**:

<figure><img src="/files/1c22da2aedc2452f47ac714811b9c28d426385a0" alt=""><figcaption></figcaption></figure>

点击“New Conversion Goal”。您需要完成三个字段： **名称**, **转化价值** 和 **排序**。在 **名称**中，只需为该目标添加一个名称，例如：“Postback”。

可用的转化价值有：

* **无价值：** 价值为 0
* **固定：** 在设置 Goal 时，您手动确定转化佣金。
* **动态：** 佣金金额将通过 Postback URL 传递。动态值传递将在本指南后文详细说明。

**排序** 用于组织您账户中创建的不同目标。如果您创建了多个 Conversion Goal，排序将帮助您组织这些目标在统计数据和 Campaigns 列表中的显示方式。

填写完所有这些字段后，点击“Create”按钮。管理面板将显示 Postback URL 的结构以及 **Goal ID** 对应于您刚创建的 Goal。它应该类似于下面这样：

```json
http://s.magsrv.com/tag.php?goal=66a8605e6cce49fbb8056f273f8e1a2e&tag=
```

您也可以查看我们的 [转化跟踪](/advertisers/zh/zhuan-hua-gen-zong/zhuan-hua-gen-zong.md) 页面，了解有关我们创建 Goal 流程的更多细节。

## 步骤 2：将 postback URL 添加到你的 Cake 控制面板

一个 **回传 URL** 是一个 URL，当你的活动中发生转化时，它会通知我们的服务器。你必须将此 URL 存储在 Cake 中，并让它在每当用户产生转化时通知 ExoClick 的服务器。

在 Cake 中添加 Postback URL 有两种方式：通过 **Offer 设置** 或者作为 **全局 Postback** 在你的账户中。

在 offer 设置中的 Postback URL 将仅应用于该 offer，而全局 Postback 将应用于你的所有 offers。

### 特定 Offer 的 Postback URL

要在特定 offer 中添加 ExoClick 的 Postback URL，请按以下步骤操作：

{% stepper %}
{% step %}
登录你的 Cake 控制面板
{% endstep %}

{% step %}
点击 **“Offers”**，然后选择你要添加 Postback 的 Offer。
{% endstep %}

{% step %}
点击 **“Test\&Tracking”**，然后添加 **回传 URL** 你在 ExoClick 中创建的。
{% endstep %}

{% step %}
在 Postback URL 的末尾添加 **#s2##s3##s4##s5#**。你的 Postback URL 现在应如下所示：

```json
http://s.magsrv.com/tag.php?goal=66a8605e6cce49fbb8056f273f8e1a2e&tag=#s2##s3##s4##s5#
```

**注**：如果您在 ExoClick 中设置目标时选择了 **Dynamic** 值，那么您还必须添加 **\&value=#price#** 到 Postback URL 的末尾，以传递转化价值。在这种情况下，您的 postback URL 将如下所示：

```json
http://s.magsrv.com/tag.php?goal=66a8605e6cce49fbb8056f273f8e1a2e&tag=#s2##s3##s4##s5#&value=#price#
```

<figure><img src="/files/abdb39ce08088a5e0f196d60b04f7fad5b2ec7e6" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
点击“Save”保存更改。
{% endstep %}
{% endstepper %}

### 全局 Postback URL

**注意：** 你的账户可能无法使用全局 Postback。请与你的 Cake 账户经理确认。

要将 ExoClick 的 Postback URL 作为全局 Postback 添加，请按以下步骤操作：

{% stepper %}
{% step %}
点击 **“Set Up”** 标签 > **“Settings”** > **“Tracking Settings”**

<figure><img src="/files/106829150af23b315c303c23f2e6bab0a558f99f" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
向下滚动到“Global Pixels & Postbacks”，然后添加你在 ExoClick 中创建的 Postback URL
{% endstep %}

{% step %}
在 Postback URL 的末尾， **添加 #s2##s3##s4##s5#**。你的全局 Postback 现在应如下所示：

```json
http://s.magsrv.com/tag.php?goal=66a8605e6cce49fbb8056f273f8e1a2e&tag=#s2##s3##s4##s5#
```

**注意：** 如果你选择了 **Dynamic** 值，那么您还必须添加 **\&value=#price#** 到 Postback URL 的末尾，以传递转化价值。在这种情况下，您的 postback URL 将如下所示：

```json
http://s.magsrv.com/tag.php?goal=66a8605e6cce49fbb8056f273f8e1a2e&tag=#s2##s3##s4##s5#&value=#price#
```

<figure><img src="/files/b2048a90c3e6b6bcae4b690ebda1105ee93e2a39" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
保存更改。
{% endstep %}
{% endstepper %}

**注意：** CAKE 平台提供 4 个子 ID（s2、s3、s4 和 s5）用于存储不同的跟踪值，但每个子 ID 的限制为 **100 个字符**。ExoClick 的转化跟踪字符串包含 **140 到 500 个字符**，因此 Cake 会自动将 ExoClick 跟踪字符串中的字符级联到 CAKE 的子 ID 中。

## 步骤 3：将转化跟踪宏添加到你的 Offer 链接

前往 **“Offers”**，点击 **Offer ID** 你想推广的，然后点击 **“Get Link”** 以获取 **Offer 链接**

例如：

```json
http://mypage.com/?a=14030&c=64375&=s1
```

<figure><img src="/files/5aecdae259252591ab45fcdecd36587bc9e06492" alt=""><figcaption></figcaption></figure>

要跟踪转化，你需要将 **s1** 参数改为 **s2** 并在 **“={conversions\_tracking}”** 添加到 Offer 链接末尾。它将如下所示：

```json
http://mypage.com/?a=14030&c=64375&s2={conversions_tracking}
```

你将使用此 URL 作为你的 **变体** 在 ExoClick 中。请确保 **不要添加额外参数** 因为它们可能会破坏来自 postback URL 的转化跟踪字符串。

请注意，仅 **{conversions\_tracking}** 用于跟踪转化。

## 步骤 4：在 ExoClick 中设置你的 Campaign

粘贴 **Offer 链接** ，将上一步创建的 **“Variation”** 作为你的 ExoClick campaign：

<figure><img src="/files/dea808cb82312398f443944112dda7857cd6c238" alt=""><figcaption></figcaption></figure>

完成广告活动设置。您可以找到一份 **关于如何在 Exoclick 中创建广告活动的详细指南** [**这里**](/advertisers/zh/guang-gao-huo-dong/chuang-jian-guang-gao-huo-dong/create-campaign-step1.md).

如果设置正确，你将开始在 Cake 和 Exoclick 中都看到转化。不要忘记在你的 [广告活动列表](/advertisers/zh/guang-gao-huo-dong/campaigns-list.md) 以及您的 [统计](/advertisers/zh/advertiser-statistics.md)

如果你需要有关如何在 Cake 中设置转化跟踪的更多指导，请随时联系 [Cake 支持](https://support.getcake.com/support/tickets/new)。您也可以联系 [Exoclick 的客户成功团队](https://www.exoclick.com/contact/) 来查看这些步骤。


---

# 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://docs.exoclick.com/advertisers/zh/zhuan-hua-gen-zong/gen-zong-shou-ce/cake-tracking.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.
