Title: PLX Lead Attribution
Author: Purplex
Published: <strong>2026 年 9 月 9 日</strong>
Last modified: 2026 年 9 月 9 日

---

搜索插件

![](https://ps.w.org/plx-utm-attribution/assets/icon-256x256.png?rev=3688440)

# PLX Lead Attribution

 作者：[Purplex](https://profiles.wordpress.org/purplex/)

[下载](https://downloads.wordpress.org/plugin/plx-utm-attribution.1.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/plx-utm-attribution/#description)
 * [评价](https://cn.wordpress.org/plugins/plx-utm-attribution/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/plx-utm-attribution/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/plx-utm-attribution/#developers)

 [支持](https://wordpress.org/support/plugin/plx-utm-attribution/)

## 描述

PLX Lead Attribution gives every [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
form on your site automatic marketing attribution, with no per-form setup required.

When a visitor lands on your site, the plugin reads the following from the URL and
stores them in the browser for 30 days:

 * `utm_source`
 * `utm_medium`
 * `utm_campaign`
 * `utm_term` (also accepts `utm_keyword` or `utm_content` as fallbacks)
 * A click ID (`gclid`, `clid`, or `ad_id`)

If no UTM source is present, the referring domain is captured instead (or “Direct”
if there is none), so every submission has a source even without a tagged link.

Five hidden fields are injected into every CF7 form automatically:

 * `utm-source`
 * `utm-medium`
 * `utm-campaign`
 * `utm-term`
 * `utm-clid`

Whichever values were captured are filled into those fields just before the form
is submitted, and the same values are appended to the CF7 notification email so 
they land straight in your inbox — no shortcodes, no manual field configuration,
no third-party tracking service.

**Requires [Contact Form 7](https://wordpress.org/plugins/contact-form-7/) to be
installed and active.** This plugin does nothing on its own — it only adds functionality
to CF7 forms.

#### Privacy

This plugin stores UTM parameters, click IDs, and the referring domain in the visitor’s
browser `localStorage` for up to 30 days, purely so the data survives from the landing
page to whichever page the contact form is submitted on. No data is sent to any 
third-party or external service by this plugin. Captured values are only transmitted
when a visitor submits a Contact Form 7 form, at which point they are included in
that form’s own submission and notification email exactly like any other form field.

## 安装

 1. Install and activate [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
    if it isn’t already.
 2. Upload the `plx-utm-attribution` folder to `/wp-content/plugins/`, or install the
    plugin through the WordPress plugins screen directly.
 3. Activate the plugin through the “Plugins” screen in WordPress.
 4. That’s it — every existing and new CF7 form will automatically receive the hidden
    UTM fields and the extra lines in its notification email. No configuration is needed.

## 常见问题

### Do I need to add anything to my Contact Form 7 form templates?

No. The hidden fields are injected automatically into every CF7 form on the site.

### What happens if Contact Form 7 isn’t installed?

The plugin’s hooks simply never run, so nothing happens — no errors, no output. 
Contact Form 7 is required for the plugin to have any effect.

### Where is the UTM data stored?

Only in the visitor’s own browser (`localStorage`), for up to 30 days, until it 
is submitted through a CF7 form. The plugin does not use cookies, does not create
any database tables, and does not send data anywhere else.

### Can I change which UTM parameters are tracked?

Not via settings in this version — the tracked parameters and field names are fixed.
Developers can adjust `js/utm-tracking.js` directly if a site needs different behaviour.

## 评价

此插件暂无评价。

## 贡献者及开发者

「PLX Lead Attribution」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Purplex ](https://profiles.wordpress.org/purplex/)

[帮助将「PLX Lead Attribution」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/plx-utm-attribution)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/plx-utm-attribution/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/plx-utm-attribution/)，或通过[RSS](https://plugins.trac.wordpress.org/log/plx-utm-attribution/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/plx-utm-attribution/)。

## 更新日志

#### 1.0.1

 * Added plugin icon.
 * Minor readme wording tweak.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**1 天前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 6.4 或更高版本 **
 *  已测试的最高版本为 **7.1**
 *  PHP 版本 ** 8.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/plx-utm-attribution/)
 * 标签
 * [contact form 7](https://cn.wordpress.org/plugins/tags/contact-form-7/)[lead tracking](https://cn.wordpress.org/plugins/tags/lead-tracking/)
   [marketing attribution](https://cn.wordpress.org/plugins/tags/marketing-attribution/)
   [UTM](https://cn.wordpress.org/plugins/tags/utm/)[utm tracking](https://cn.wordpress.org/plugins/tags/utm-tracking/)
 *  [高级视图](https://cn.wordpress.org/plugins/plx-utm-attribution/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/plx-utm-attribution/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/plx-utm-attribution/reviews/)

## 贡献者

 *   [ Purplex ](https://profiles.wordpress.org/purplex/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/plx-utm-attribution/)