Vital UTM Catcher
A simple UTM parameter processor plugin for WordPress.
by Vital · github.com/vitaldevteam/vital-utm-catcher · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/vitaldevteam/vital-utm-catcher/archive/refs/heads/master.zipReadme
Vital UTM Catcher
A simple UTM parameter processor plugin for WordPress. "Catches" a specific set of URL parameters on an entry page and makes them accessible throughout the website for the entire user session.
By default the plugin will already handle the following URL parameters: 'utm_source', 'utm_medium', 'utm_term', 'utm_content', 'utm_campaign'.
Default cookie expiration time is 24 hours.
Add ?utm_catcher_params to any link href URL and the plugin will replace it with any caught UTM parameters.
Installation
- Download the latest release from the repository's release page.
- Install plugin in WordPress using the downloaded ZIP file
Usage
- Customize the plugin's settings in
vital-utm-catcher.php. - The list of URL parameters the plugin catches are stored in the
$utm_paramsvariable. - The cookie lifetime is stored in the
$cookie_expiresvariable. - Add
?utm_catcher_paramsto any linkhrefURL and the plugin will replace it with any caught UTM parameters.
Changelog
1.1.3
- Add gclid to setCookie list
1.1.2
- Update setcookie with domain path
1.1.1
- Adds check for empty cookie before setting PHP cookie. Could cause caching issues with nginx/Varnish.
1.1.0
- Adds support for
utm_catcher_paramstoken replacement in link URLs. - Adds minified version of plugin's JavaScript.
1.0.0
- Initial release.
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.