| 开发者 | hugoc |
|---|---|
| 更新时间 | 2026年11月15日 16:57 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
ct_* fields you want stored (Fluent Forms gets them on its own). The field setup for each form plugin is under Installation.dataLayer, and ClickTrail can send canonical JSON to an endpoint you set.sessionStorage when cookies are blocked, and your own admin browsing stays out of it.view_item, view_item_list, view_cart, add_to_cart, remove_from_cart, begin_checkout), and optional order-status milestones. Order metadata has export, erase, retention, and uninstall handling.purchase pushed from the order confirmation receipt with event_id purchase_edd_<order ID>. Reloading the receipt does not push it again. Nothing is stored or pushed without the consent your settings require. Order metadata has export, erase, retention, and uninstall handling._clicutcl_* user meta, only with marketing consent) and sends one sign_up event. Users registered from wp-admin get nothing. The meta has export, erase, retention and uninstall handling.ct_* tags you reference ([hidden ct_gclid] or [ct_gclid] in the mail). Gravity Forms, WPForms, Formidable Forms and Forminator fill the ct_* fields you add; Gravity Forms also gets a channel label, nine {clicutcl_*} merge tags, and a per-form switch. Elementor Forms (Pro) and Ninja Forms keep attribution with the submission record. The server renders those fields empty so a page cache never serves one visitor's attribution to another (the clicutcl_render_server_attribution_values filter opts back in on sites without a cache); the browser fills them after load, the submit-time cookie corrects them, and keys the cookie lacks are blanked rather than kept. Cached form pages need no exclusion. A client-side fallback covers cached pages and forms that load late, and WhatsApp links can carry the context too.wa.me, api.whatsapp.com or whatsapp:// link pushes one contact_whatsapp_start event (with consent). With Append attribution to message on (off by default) the pre-filled text ends with a short Ref: CT-XXXXXXXX code instead of the attribution payload; an administrator pastes it into Diagnostics to see the stored first/last touch and click ID.book_appointment with its UTMs. Booking or form iframes your own script loads can carry the campaign too, through window.ClickTrail.decorateEmbedUrl(), for hosts you list.dataLayer, a REST intake, webhooks from Calendly, HubSpot, and Typeform, lifecycle updates, and one-time WordPress events such as login, sign_up, and comment_submit. Optional server-side delivery adds a retry queue and diagnostics.gclid, wbraid, gbraidfbclidttclidmsclkidtwclidli_fat_idsccid, snap_cidepik, pin_cidrdt_cidmc_cid, mc_eiddclidgad_source and gad_campaignid (Google Ads without a gclid, labelled Google Ads) and oppref (labelled ChatGPT Ads).
Integrations
utm_id, utm_source_platform, utm_creative_format, utm_marketing_tactic, fbc, fbp, _ttp, li_gc, ga_client_id, ga_session_idclicutcl-consent-bridge-js, clicutcl-attribution-js, clicutcl-consent-js, clicutcl-events-js) carry nowprocket data-no-optimize="1" data-no-defer="1" data-noptimize="1" data-cfasync="false": nowprocket (WP Rocket Delay JS), data-no-optimize="1" and data-no-defer="1" (LiteSpeed Cache), data-noptimize="1" (Autoptimize), data-cfasync="false" (Cloudflare Rocket Loader). The same scripts are registered on the exclusion filters of WP Rocket (rocket_delay_js_exclusions, rocket_exclude_defer_js, rocket_exclude_js), LiteSpeed Cache (litespeed_optimize_js_excludes, litespeed_optm_js_defer_exc, litespeed_optm_gm_js_exc), Autoptimize (autoptimize_filter_js_exclude), Perfmatters (perfmatters_delay_js_exclusions, perfmatters_defer_js_exclusions, perfmatters_minify_js_exclusions), SiteGround Speed Optimizer (sgo_js_minify_exclude, sgo_javascript_combine_exclude, sgo_js_async_exclude), and FlyingPress JS minification (flying_press_exclude_from_minify:js); NitroPack adds data-nitropack-exclude="true" and nitropack_js_url_exclude when active. The inline consent-default snippet carries nowprocket data-no-defer="1". To check: view the page source, confirm every clicutcl-*.js tag carries the attributes, and confirm window.ClickTrail is defined before submitting a form. Delay-JS features run scripts on the first interaction (WP Rocket lists keydown, mousemove, touchstart, scroll, click, input, onsubmit), so a keyboard-only submit still runs them, too late for the landing touch. FlyingPress documents no attribute and no delay or defer filter, only the minification filter above: add clicutcl and clicktrail-consent-mode to its exclusion field. Source-present / runtime-unverified.ct_* hidden fields you want stored or exported before testing./wp-content/plugins/click-trail-handler/.POST /wp-json/clicutcl/v2/cookie-refreshct_* tags the form or mail referencesct_* hidden fields you want to preserve, such as ct_ft_source, ct_lt_source, or ct_gclid (latest click; use ct_ft_gclid or ct_lt_gclid to pin a touch). Gravity Forms reads the parameter name, WPForms and Forminator a CSS class (or a label) of ct_<key>, Formidable Forms the Field Key (or a label) of ct_<key>, Elementor the field IDdataLayer pushes and on-site event captureview_item, view_item_list, view_cart, add_to_cart, remove_from_cart, and begin_checkout in the browser event layerdataLayer contract only if you want event_id and consent-aware user_data for GTM-first flows?utm_source=test&utm_medium=cpc&utm_campaign=clicktrail-install-check.dataLayerview_item, view_item_list, view_cart, add_to_cart, remove_from_cart, and begin_checkout appear in GTM preview or the dataLayerct_* tags you reference ([hidden ct_gclid] in the form or [ct_gclid] in the mail). Gravity Forms, WPForms, Formidable Forms, Forminator and MetForm fill the ct_* fields you add (WPForms Lite has no Hidden field: use a Single Line Text field with the CSS class ct_<key> and hide it with CSS; Formidable Forms: a Hidden field whose Field Key is ct_<key>; Forminator: a Hidden field with the custom CSS class ct_<key>; in MetForm, name a hidden input ct_<key>).ClickTrail stores attribution on the WooCommerce order. The plugin also adds Woo attribution views inside the Woo admin experience where supported, and purchase events carry the same campaign context into the dataLayer and optional server-side delivery.
ClickTrail now declares compatibility with WooCommerce custom order tables (HPOS) and keeps WooCommerce runtime storage on Woo order APIs for order attribution and purchase tracking.
When you enable WooCommerce storefront events in the Events tab, ClickTrail emits view_item, view_item_list, view_cart, add_to_cart, remove_from_cart, and begin_checkout through the same browser event layer used for other ClickTrail events. They are off by default on upgrades.
sGTM mode changes how ClickTrail loads the GTM container and how the Events tab validates a GTM-first rollout. You can configure a tagging-server URL, first-party script delivery, or a custom loader path, then run preview checks before switching Delivery to the sGTM adapter when needed.
No. ClickTrail complements them. It preserves attribution inside WordPress, pushes event data to the dataLayer, and can optionally deliver events through its server-side pipeline.
No. WooCommerce is one documented conversion surface; ClickTrail also has lead-form, webhook-ingress, and broader WordPress attribution paths.
ClickTrail renders form attribution fields empty on the server, so cached form pages carry no visitor's data and do not need to be excluded from the page cache; its client-side script fills the visitor's own values after load, and the submit-time cookie corrects them. Minify, combine, defer and delay-JS features are handled too: every ClickTrail script tag carries nowprocket data-no-optimize="1" data-no-defer="1" data-noptimize="1" data-cfasync="false" and the scripts are listed on the exclusion filters of WP Rocket (rocket_delay_js_exclusions, rocket_exclude_defer_js, rocket_exclude_js), LiteSpeed Cache (litespeed_optimize_js_excludes, litespeed_optm_js_defer_exc, litespeed_optm_gm_js_exc), Autoptimize (autoptimize_filter_js_exclude), Perfmatters (perfmatters_delay_js_exclusions, perfmatters_defer_js_exclusions, perfmatters_minify_js_exclusions), SiteGround Speed Optimizer (sgo_js_minify_exclude, sgo_javascript_combine_exclude, sgo_js_async_exclude), and FlyingPress JS minification (flying_press_exclude_from_minify:js). To check: view the page source, confirm every clicutcl-*.js tag carries the attributes, and confirm window.ClickTrail is defined before submitting a form. Delay-JS features run scripts on the first interaction (WP Rocket lists keydown, mousemove, touchstart, scroll, click, input, onsubmit), so a keyboard-only submit still runs them, too late for the landing touch. FlyingPress documents no attribute and no delay or defer filter, only the minification filter above: add clicutcl and clicktrail-consent-mode to its exclusion field. Source-present / runtime-unverified.
No. Only the browser script writes the attribution cookie, and no PHP code reads UTMs or click IDs from the URL, so a lead from a visitor with JavaScript disabled or blocked (strict blockers, some corporate proxies) has no attribution, unless an earlier visit with JavaScript left the cookie. ClickTrail renders form fields empty on the server so cached pages never carry one visitor's values to another (#152); the trade-off is that no-JS visitors are not covered. The opt-in filter clicutcl_render_server_attribution_values does not change that: it only writes the values of an existing cookie into form HTML, on sites without a page cache, and never captures anything from the URL.
No. Fluent Forms can receive attribution hidden fields automatically; Contact Form 7 renders a field only for each ct_* tag the form or its mail references ([hidden ct_gclid], [ct_gclid]). Gravity Forms, WPForms, Formidable Forms, Forminator and Elementor Forms (Pro) work best when you add the matching ct_* hidden fields you want stored or exported: Gravity Forms matches the parameter name, WPForms a CSS class ct_<key> (a Hidden field needs WPForms Pro; on Lite use a Single Line Text field hidden with CSS; a label of exactly ct_<key> also works), Formidable Forms the Field Key of a Hidden field (ct_<key>; a label of exactly ct_<key> also works), Forminator a Hidden field with the custom CSS class ct_<key>, Elementor the hidden field's ID. Every adapter refreshes those fields from the cookie sent with the submit, so a form submitted on the landing page stores that visit's click. Elementor Forms (Pro) and Ninja Forms also keep attribution with the submission record.
Yes. Attribution capture, WooCommerce order attribution, purchase event pushes, and form enrichment all work without enabling server-side delivery.
Consent mode is optional in configuration. When enabled, ClickTrail applies the configured behavior; the current audit found a legacy require_consent mismatch when mode is disabled, so optional mode is not a compliance or delivery guarantee until the next runtime release passes its tests.
Yes. ClickTrail can listen to its own banner, Cookiebot, OneTrust, Complianz, GTM, or a custom source. You do not need to replace an existing CMP just to use the plugin.
gclid in the last touch, so leads and orders mixed two campaigns. First touch and the newest value of each click ID are unchanged. (#230)gad_source, gad_campaignid and oppref are captured. A Google Ads visit whose gclid was stripped (Safari link protection, Brave, ad blockers) is labelled Google Ads instead of Google Organic, and ChatGPT Ads (oppref) is labelled separately from unpaid ChatGPT referrals. They reach ct_* form fields and order meta, and are never chosen as the click ID for conversion upload. Visible changes: a Google Ads click without UTMs (gclid, gbraid, wbraid) now stores medium cpc instead of an empty medium; an oppref visit stores source chatgpt; a gad_source landing no longer records google as source or the Google referrer. (#231)promo_code, coupon_code, user_email, gift_card), and the #fragment is always dropped; use the filter clicutcl_sensitive_query_keys to keep a parameter your reports need. (#232)clicutcl_render_server_attribution_values only renders an existing cookie. (#233)c=1 consent stamp only a SHA-256 hash is sent; without one (including on sites where consent is not required) the booking carries no email at all.order_paid, order_refunded and order_cancelled are not re-sent after them.queued: true instead of 500 when an event is queued for retry, the retry queue drains in pages within a 45 s budget instead of 10 rows per run, and expired pending rows and consent stalls show in failure telemetry.session_id, client_id, user_id, session_number, engagement_time_msec, timestamp_micros, page_location and page_referrer under those names. They are now sent as ct_session_id, ct_client_id and so on, and the page view event is ct_page_view. Custom GTM variables that read the old names must be updated; the bundled starter kit already is.ct_ tags that the form or its mail references. Add [hidden ct_gclid] to the form to get the value into mail and CRM add-ons. ClickTrail's own record is unaffected.X-Forwarded-For hop. Sites reachable only through Cloudflare can opt in to CF-Connecting-IP with the filter clicutcl_trust_cf_connecting_ip.ct_<key>, for example ct_gclid.contact_whatsapp_start event. The optional "Append attribution to message" setting (still off by default) now adds a short reference code instead of a long encoded block.docs/reference/INTEGRATIONS.md and docs/guides/SECURITY-PRIVACY.md; earlier claims may describe intended behavior that still requires current runtime verification. In particular, older wording that calls platform-named server paths “first-class native delivery adapters” predates the current evidence classification: those paths are configured-endpoint relays whose provider authentication, acceptance, and runtime delivery remain unverified.