ethanclevenger91 / store-utm-params-to-cookie
Saves all query params starting with 'utm_' to a cookie.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Shell
Type:wordpress-plugin
This package is auto-updated.
Last update: 2025-05-11 20:38:38 UTC
README
=== Store UTM Params To Cookie === Contributors: eclev91 Tags: marketing, ads, utm Requires at least: 4.5 Tested up to: 6.7.1 Requires PHP: 8.0 Stable tag: 0.1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Saves all query params starting with 'utm_' to a cookie. == Description == Saves all query params starting with 'utm_' to a cookie prefixed with sup_ set to store for 24 hours. Let's say a user clicks an ad and lands at `yoursite.org?utm_term=term&utm_campaign=ppc&foo=bar`. Two cookies will be created: 1. `sup_utm_term` with the value `term`. 2. `sup_utm_campaign` with the value `ppc`. Note that non-utm params are not saved. == Frequently Asked Questions == = Does this work with Gravity Forms? = Gravity Forms won't prepopulate fields with cookie values by default. See https://github.com/ethanclevenger91/gf-dynamic-population-from-cookies for a cache-friendly solution. == Changelog == = 1.0.0 = Initial release.