定制 ethanclevenger91/store-utm-params-to-cookie 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ethanclevenger91/store-utm-params-to-cookie

最新稳定版本:1.1.0

Composer 安装命令:

composer require ethanclevenger91/store-utm-params-to-cookie

包简介

Saves all query params starting with 'utm_' to a cookie.

README 文档

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.

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Shell

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-02-11