> 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/blocking-and-redirect-rules/test-a-redirect-rule.md).

# 测试重定向规则

你可以使用 A/B 测试来确保重定向规则比原始目标 URL 带来更好的效果。impact.com 建议你在为重定向链接创建正式的重定向规则之前，先对计划使用的链接进行 A/B 测试。详细了解 [重定向路由规则](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/blocking-and-redirect-rules/redirect-routing-rules-overview.md).

#### 设置 A/B 测试

首先，你需要设置一条 [重定向规则](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/blocking-and-redirect-rules/create-a-redirect-rule.md) 并为其指定一组条件。请按照以下步骤确保规则设置正确。

{% hint style="success" %}
**注意：** 你需要获取要进行 A/B 测试的广告的 `Ad ID` 。你可以在 [管理广告](https://app.impact.com/secure/advertiser/engage/ads/manage-all-ads-flow.ihtml) 页面中找到它。
{% endhint %}

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. 为规则添加一个\*\*名称\*\*。
   * 建议使用能够表明此规则用于 A/B 测试的名称。
5. 在\*条件\*部分，使用 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[下拉菜单]** 按以下方式配置 A/B 测试：
   * 将第一个条件设为 *广告 ID* + *等于* + {Ad ID}。
   * 选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-6282f271b7521383385339243690b303086736d9%2F3b5a585dd2895bdf1c30d1236c72ba590dddd18717863b27074c8d313d05ae20.svg?alt=media) **\[添加]** **AND**.
   * 将第二个条件设为 *概率* + *小于* + *50*.
   * 必须严格按照上述说明设置这些条件。设置不同的条件（例如，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-6282f271b7521383385339243690b303086736d9%2F3b5a585dd2895bdf1c30d1236c72ba590dddd18717863b27074c8d313d05ae20.svg?alt=media) **\[添加]** **再添加一项** 而不是 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-6282f271b7521383385339243690b303086736d9%2F3b5a585dd2895bdf1c30d1236c72ba590dddd18717863b27074c8d313d05ae20.svg?alt=media) **\[添加]** **AND**）会导致测试结果失真。

     <div data-with-frame="true"><figure><img src="https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FD5H1IepWaIojLdTAh02w%2FScreenshot%202026-05-06%20at%2018.23.11.png?alt=media&amp;token=c7fb35c8-c0ba-4fd5-8924-e6a3ee8fca68" alt="" width="563"><figcaption></figcaption></figure></div>
6. 在 *操作* 部分，使用 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[下拉菜单]** 将重定向规则配置为 *重定向* +（重定向链接协议）+（目标 URL）。
7. 你还可以选择 ![](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) **\[开启]** **安排规则** 以设置此重定向规则的生效时段。
8. 将 *优先级* 设置为 **高**.
9. **保存** 规则。

#### 跟踪 A/B 测试

如果你想跟踪重定向规则的效果，可以使用 [A/B 测试综合效果报告](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/multi-program-reports/operations-reports/aggregate-ab-performance-report.md)。该报告通常最适合用于测试特定的落地页 URL，可提供最佳数据。这些数据有助于创建新的重定向规则、修改现有广告，或为将来以不同方式设置广告。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/blocking-and-redirect-rules/test-a-redirect-rule.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
