> ## Documentation Index
> Fetch the complete documentation index at: https://docs.landerlab.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 使用 URL 参数预填字段

> 使用 URL 参数自动预填测验或表单字段：让输入字段 Name 与参数一致，即可带入邮箱、邮编等已有数据，减少填写阻力并提高转化。

LanderLab 支持**使用 URL 参数自动预填测验或表单中的字段**。通过填入你已有的数据，可以减少阻力、实现个性化体验并提高转化率。

该功能**默认启用**，除了匹配字段名称外，无需任何额外设置。

<video src="https://mintcdn.com/landerlab-babdc23f/Z2YoYeln2B1TMMHE/videos/Screen-Recording-2025-12-03-at-10.13.36-AM.webm?fit=max&auto=format&n=Z2YoYeln2B1TMMHE&q=85&s=f365485e67f8933cae3b66be4989f37f" controls={true} data-path="videos/Screen-Recording-2025-12-03-at-10.13.36-AM.webm" />

## 工作原理

当访客通过带参数的 URL 进入你的页面时，LanderLab 会：

1. 读取 URL 中的参数
2. 将参数与输入字段的 Name 进行匹配
3. 自动填充匹配的字段

匹配**不区分大小写**，因此不同的大小写写法都能生效。

## 示例

URL：

```text theme={null}
https://yourlandingpage.com/?zip=12345
```

设置：

* 参数 → `zip`
* 值 → `12345`
* 输入字段 Name → `zip`、`Zip` 或 `ZIP`

结果：

页面加载时，Zip Code 字段会自动填入 **12345**。

## 如何设置

1. 确定你要使用的参数（例如 `email`、`zip`、`aff_id`）
2. 在 LanderLab 中打开你的测验或表单
3. 选择要预填的输入字段
4. 将输入字段的 **Name** 设置为与参数一致
5. 发布你的页面
6. 使用带参数的线上 URL 进行测试

## 常见用例

* **地理位置定向**
  ```text theme={null}
  ?zip=90210
  ```
* **邮箱个性化**
  ```text theme={null}
  ?email=user@example.com
  ```
* **联盟跟踪**
  ```text theme={null}
  ?aff_id=123
  ```
* **广告活动跟踪（UTM）**
  ```text theme={null}
  ?utm_source=facebook&utm_campaign=summer
  ```

## 重要说明

* 预填**仅在线上（已发布）页面中生效**，在构建器预览中不生效
* 输入字段的 Name 必须与参数完全一致（不能有多余空格）
* URL 参数必须格式正确并经过编码
* 匹配不区分大小写

<Tip>
  **提示：** 将预填与隐藏字段和跟踪结合使用，即可自动获取归因数据，无需让用户手动填写。
</Tip>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.