Linux 软件免费装
Banner图

Presswell Tracking Signal Relay

开发者 presswell
benplum
更新时间 2026年10月14日 22:14
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

tracking forms utm attribution lead-generation

下载

1.0.0

详情介绍:

Presswell Tracking Signal Relay captures attribution parameters and stores them with supported form submissions. It reads query parameters from the current URL, merges them with previously stored values, and keeps them available for later form views in the same session. Supported Form Plugins Features Documentation Attribution Model Choose a model under Settings -> Tracking Signal Relay. The default, First and last, stores two sets of values with every submission: Last touch and First touch store the plain keys alone (utm_source, ...), holding that model's values. Values share one record in browser localStorage. It expires once the Attribution Expiry passes with no page views (7 days by default, up to one year), and the next visit starts a new record. A longer expiry keeps first-touch attribution across more widely spaced visits; a shorter one makes last touch reset sooner. Changing the model only affects new submissions. Existing entries keep the values they were saved with, so with a single model, a field such as utm_source can mean different things before and after the change. landing_page, landing_query, and referrer always describe the visit itself and can't be set through the query string. Capture Methods pwtsr_tracking_keys( $keys, $context ) Example: add_filter( 'pwtsr_tracking_keys', function( $keys, $context ) { if ( 'gravityforms' !== $context ) { return $keys; } $keys[] = 'custom_param'; $keys[] = 'utm_id'; return $keys; }, 10, 2 ); pwtsr_tracking_ttl( $ttl, $context ) Example: add_filter( 'pwtsr_tracking_ttl', function( $ttl, $context ) { if ( 'core' !== $context ) { return $ttl; } return DAY_IN_SECONDS * 30; }, 10, 2 ); pwtsr_storage_key( $storage_key, $context ) pwtsr_enqueue_tracking_script( $enqueue ) pwtsr_attribution_model( $model, $context ) pwtsr_require_consent( $required ) pwtsr_consent_category( $category ) Consent With Visitor Consent on, the script reads and stores nothing until the visitor consents. Consent plugins that support the WP Consent API work without setup. Other consent banners can use the JavaScript interface: // After the visitor accepts, or on each page load once they have. presswellSignalRelay.setConsent( true ); // When the visitor withdraws consent; the stored record is removed. presswellSignalRelay.setConsent( false ); // Whether attribution is currently being stored. presswellSignalRelay.hasConsent(); A script that runs before Tracking Signal Relay loads can set window.presswellSignalRelayConsent = true instead. Attribution on the page where consent is given is still captured, but parameters on pages viewed before consent are lost. Default Tracking Keys With the First and last model, each is also stored as a first-touch copy prefixed with first_, such as first_utm_source. Settings and Debug Display Use Settings -> Tracking Signal Relay to:

安装:

Install via the WordPress plugin installer, or manually upload the plugin directory to wp-content/plugins/. Configuration
  1. Activate the plugin.
  2. If using Contact Form 7, publish any form (tracking inputs are injected automatically).
  3. If using Fluent Forms, edit a form and add the Tracking field.
  4. If using Formidable Forms, edit a form and add the Tracking field.
  5. If using Forminator, publish a custom form (tracking inputs are injected automatically).
  6. If using Gravity Forms, edit a form and add the Tracking field from Advanced Fields.
  7. If using WPForms, edit a form and add the Tracking field.
  8. Send traffic with UTM/click parameters.

屏幕截图:

  • Debug display on a front-end form showing captured tracking values.
  • Captured attribution on a Gravity Forms entry.

常见问题:

What parameters are tracked by default?

UTM parameters (utm_source, utm_medium, utm_campaign, utm_content, utm_term), common ad click IDs (gclid, fbclid, msclkid, ttclid), plus landing_page, landing_query, and referrer.

Does this require custom JavaScript in my theme?

No. The plugin injects and populates tracking inputs automatically when supported forms render.

How long is attribution data stored?

By default, until 7 days pass with no page views. Change it with Attribution Expiry in the settings, or the pwtsr_tracking_ttl filter.

Which campaign gets credit?

By default, both the first and the most recent. Last-touch keys (utm_source) hold the latest tagged visit; first-touch keys (first_utm_source) hold the visit that started the record. Pick one model instead in the settings. See Attribution Model above.

Can I track additional custom parameters?

Yes. Use the pwtsr_tracking_keys filter or add custom parameters in Settings -> Tracking Signal Relay.

Why isn't my form plugin supported?

We plan to support additional form ecosystems, but each integration requires reliable extension points for hidden field rendering, submission lifecycle hooks, entry persistence, and token/merge-tag resolution. Some form plugins do not expose these capabilities consistently enough to deliver a production-ready adapter. We are also prioritizing support for plugins with transparent licensing, complete core functionality, and a respectful user experience.

更新日志:

1.0.0