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.
- Download the latest release from the repository's release page.
- Install plugin in WordPress using the downloaded ZIP file
- Customize the plugin's settings in
vital-utm-catcher.php
. - The list of URL parameters the plugin catches are stored in the
$utm_params
variable. - The cookie lifetime is stored in the
$cookie_expires
variable. - Add
?utm_catcher_params
to any linkhref
URL and the plugin will replace it with any caught UTM parameters.
- Add gclid to setCookie list
- Update setcookie with domain path
- Adds check for empty cookie before setting PHP cookie. Could cause caching issues with nginx/Varnish.
- Adds support for
utm_catcher_params
token replacement in link URLs. - Adds minified version of plugin's JavaScript.
- Initial release.