> 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/set-up-tracking/collect-campaign-data-with-google-analytics.md).

# 使用 Google Analytics 收集活动数据

通过将活动参数添加到您使用的目标 URL 中，您可以收集有关广告活动的信息。这样，您就可以在不同的社交媒体应用中跟踪您的活动，也可以跟踪广告的电子邮件版或视频版。

当用户点击推荐链接时，您添加的参数会发送到 Google Analytics，相关数据可在 Google Analytics 的活动报告中查看。了解更多关于 [使用自定义 URL 收集活动数据](https://support.google.com/analytics/answer/1033863) ![](/files/591c7e9af05081f2c32fe7ca30f9ba36546884c1) 请参阅 Google 的帮助中心。

1. 从顶部导航栏中，选择 ![](/files/34cff7cafbbfcd416778a35b63cb058c27bcda8b) **\[用户资料] → 设置**.
2. 在右侧，位于 *跟踪*下，选择 **网关**.
   * 了解更多关于 [配置网关跟踪设置](/brand/zh/what-would-you-like-to-learn-about/account-administration/program-settings/tracking-settings/configure-gateway-tracking-settings.md).
3. 在下方 *合作伙伴跟踪模板*，添加您希望自动附加到合作伙伴链接的 UTM 参数。请参阅下面的 *参数参考* ，以了解可用参数的详细信息。

<details>

<summary>参数参考</summary>

共有 5 个参数 [可添加到您的 URL 中](/brand/zh/what-would-you-like-to-learn-about/account-administration/program-settings/tracking-settings/gateway-tracking-templates.md).

| 参数             | 描述                                                                                   | Google Analytics 是否需要？ |
| -------------- | ------------------------------------------------------------------------------------ | ---------------------- |
| `utm_source`   | 用于识别向您的资源发送流量的广告主、网站、出版物等，例如：impact.com、billboard。                                   | 是                      |
| `utm_medium`   | 广告或营销媒介，例如：cpc、横幅广告、电子邮件简报。                                                          | 是                      |
| `utm_campaign` | 某个产品的具体活动名称、口号、促销代码等。                                                                | 是                      |
| `utm_term`     | 用于标识付费搜索关键词。如果您手动标记付费关键词活动，还应使用 `utm_term` 来指定关键词。                                   | 否                      |
| `utm_content`  | 用于区分同一广告中的链接。例如，如果您在同一封电子邮件中有两个号召性用语链接，您可以使用 `utm_content` 并为每个链接设置不同的值，以便判断点击了哪些链接。 | 否                      |

</details>

4. 选择 **保存**.

   <div data-with-frame="true"><figure><img src="/files/00041bc15152675b378d2045ce2763f4b47270f8" alt="" width="563"><figcaption></figcaption></figure></div>

#### 示例

Dunder Mifflin Paper Company 正在开展春季促销活动，并使用以下参数来识别其流量：

* `utm_campaign = spring-2024` 用于识别整体活动。
* `utm_source = spring2024-mailer` 用于识别来自电子邮件活动的流量。
* `utm_medium = email` 用于区分来自电子邮件活动和应用内活动的流量。

您的自定义活动 URL 如下：

`https://www.example.com?utm_campaign=spring-2024s&utm_source=spring2024-mailer&utm_medium=email`


---

# 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/set-up-tracking/collect-campaign-data-with-google-analytics.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.
