# 测试并排查回传 URL

您可以在生产环境中依赖之前先测试回传 URL。这有助于您确认端点是否接受请求，并更快地排查投放问题。

#### 测试您的回传 URL

{% hint style="success" icon="circle-info" %}
**注意：** 在测试时，我们建议暂时修改您的回传 URL，使其传递一个硬编码的测试值（例如，用“12345678”代替 `{SubId1}`），以避免错误。如果您的服务器接受该提交，您就可以放心地将回传 URL 恢复为使用该变量。
{% endhint %}

1. 从顶部导航栏中选择 **发现** → **我的品牌**.
2. 根据您的视图继续：
   * 对于 ![](/files/5ac1d6fd467ef06782292f13a0677acb74ab20bc) **\[网格视图]**，选择您要测试回传的品牌，然后选择 ![](/files/bc9aa794eb347d6f55e668dbe0e98eae7d1cd905) **\[更多] → 跟踪集成**.
   * 对于 ![](/files/577a57e22f7c17be1ad01661bd4aa4e7d0aebcf5) **\[列表视图]**，将鼠标悬停在您要测试回传的品牌上，然后选择 ![](/files/bc9aa794eb347d6f55e668dbe0e98eae7d1cd905) **\[更多]** → **跟踪集成**.
3. 在 *回传* 部分，找到您想测试的回传 URL，然后选择 ![](/files/a9517a60946f0f86dabf7c2dbae09cb519d9f0b7) **\[操作] → 测试**.
4. 填写您想测试的 URL，然后选择 **开始测试**.

   <div data-with-frame="true"><figure><img src="/files/a0bae6a1e08818853872366b9818ce991d731be9" alt=""><figcaption></figcaption></figure></div>

#### 了解重试行为

如果 impact.com 向您的目标 URL 发送回传时失败，impact.com 会自动重试投放。这有助于应对临时的网络问题或服务器短时间不可用的情况。

impact.com 最多会对失败的回传总共重试 15 次。

在以下情况下，impact.com 不会重试回传：

* 目标 URL 格式错误或无效。
* 目标 URL 或其主机无法解析，例如 DNS 查询失败期间。

impact.com 会跳过来自 `400` 到 `500`.

| 重试次数  | 重试前延迟  |
| ----- | ------ |
| 重试 1  | +15 秒  |
| 重试 2  | +15 秒  |
| 重试 3  | +15 秒  |
| 重试 4  | +3 分钟  |
| 重试 5  | +3 分钟  |
| 重试 6  | +15 分钟 |
| 重试 7  | +15 分钟 |
| 重试 8  | +15 分钟 |
| 重试 9  | +2 小时  |
| 重试 10 | +2 小时  |
| 重试 11 | +2 小时  |
| 重试 12 | +6 小时  |
| 重试 13 | +6 小时  |
| 重试 14 | +6 小时  |
| 重试 15 | +6 小时  |

#### 排查错误

| 错误       | 说明                                                                                 |
| -------- | ---------------------------------------------------------------------------------- |
| 缺少必填参数   | 您的服务器很可能需要一个值而不是变量。请修改您的回传 URL 以传递一个测试值（例如，用“12345678”代替 `{SubId1}`），看看它是否接受该硬编码值。 |
| 区分大小写的变量 | 动态变量区分大小写，必须完全一致，也就是说 `{SubId1}` 与 `{subid1}`并不相同。请仔细检查您的变量是否反映了正确的大小写。            |
| 拒绝访问     | 大多数回传服务器都需要随动态变量一起传递安全令牌或值。请与您网站的技术团队合作（或参考您网站提供商的文档），了解访问该服务器所需的令牌或安全值。           |


---

# Agent Instructions: 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:

```
GET https://help.impact.com/partner/zh/nin-xiang-liao-jie-shen-me/platform-features/action-management/event-notifications-and-postbacks/test-and-troubleshoot-a-postback-url.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
