Linux 软件免费装
Banner图

ClickTrail – UTM Tracking & Lead Source for Forms & WooCommerce

开发者 hugoc
更新时间 2026年11月15日 16:57
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce attribution lead source utm tracking gclid

下载

1.8.14 1.14.0 1.8.4 1.5.1 1.3.0 1.5.0 1.3.7 1.5.2 1.8.2 1.8.5 1.8.6 1.13.0 1.4.0 1.3.1 1.8.16 1.1.0 1.10.0 1.2.1 1.2.2 1.3.9 1.8.13 1.8.17 1.8.7 1.9.1 1.10.2 1.10.3 1.3.8 1.8.12 1.8.15 1.8.3 1.8.8 1.1.1 1.10.5 1.7.0 1.10.1 1.10.4 1.11.0 1.2.3 1.11.2 1.2.0 1.11.3 1.13.1

详情介绍:

Someone clicks your ad. Three pages later, they send a form or place an order. By then the campaign is usually gone, and the lead looks like it came from nowhere. ClickTrail keeps what the visitor arrived with: the UTMs, the ad click ID, the referrer. It carries that context to the form entry or the WooCommerce order, and to a Calendly booking. You open the record and see where it came from. Works with Contact Form 7, Gravity Forms, WPForms, Elementor Forms, Fluent Forms, Ninja Forms, Formidable Forms, Forminator, MetForm, SureForms, WooCommerce, Easy Digital Downloads, Ultimate Member, Calendly, HubSpot and Typeform. Consent-aware: nothing is stored until the visitor agrees, when your settings require it. Start here Pick the path that matches your site. Then place one test order or send one test form, and look at what was stored. The use-case guide and tutorials walk through each path. What it does ClickTrail only acts on the paths you turn on and set up in its settings. That is what "configured" means everywhere in this readme. Consent and privacy When consent is required, nothing is stored until the visitor agrees. ClickTrail listens to its own banner, Cookiebot, OneTrust, Complianz, GTM, or a custom source, or detects the source for you. ClickTrail follows Cookiebot and Complianz decisions, including changes the visitor makes on the page. On withdrawal, ClickTrail clears its storage and removes the parameters it added to links. Queued deliveries check current consent again right before they are sent, and the consent decision stays in sync across tabs. Consent behavior can be strict, relaxed, or geo-based. ClickTrail helps you implement consent; compliance still depends on your legal requirements and your settings. What it does not do Having code for an integration is not proof that it works in production. Current status lives in the integration reference and the machine-readable ledger. The release-phasing plan shows what gets checked next. Supported click IDs Paid markers are captured as touch fields too, but are never the selected click ID: gad_source and gad_campaignid (Google Ads without a gclid, labelled Google Ads) and oppref (labelled ChatGPT Ads). Integrations

安装:

Before you configure anything ClickTrail can be rolled out in layers. A basic attribution setup for forms or WooCommerce does not require server-side delivery on day one. Recommended first setup
  1. Install the plugin through WordPress or upload it to /wp-content/plugins/click-trail-handler/.
  2. Activate the plugin.
  3. Open ClickTrail > Settings.
  4. In Capture:
  5. keep attribution enabled
  6. choose a retention window that matches your sales cycle
  7. set Cookie scope to Registrable domain if visitors move between www, the bare domain and other subdomains of your site (host only keeps cookies on one exact host)
  8. leave Re-issue the attribution cookie from the server on (default on new installs, off on upgraded ones) so Safari does not drop the attribution cookie after a day or a week; your cache or firewall must not block or cache POST /wp-json/clicutcl/v2/cookie-refresh
  9. enable cross-domain continuity only if visitors move between approved domains or subdomains
  10. In Forms:
  11. enable only the integrations you actually use
  12. for Fluent Forms, ClickTrail can add attribution hidden fields automatically; for Contact Form 7, it fills the ct_* tags the form or mail references
  13. for Gravity Forms, WPForms, Formidable Forms, Forminator and Elementor Forms (Pro), add the matching ct_* 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 ID
  14. In Events:
  15. leave browser events enabled only if you want dataLayer pushes and on-site event capture
  16. enable WooCommerce storefront events only if you want view_item, view_item_list, view_cart, add_to_cart, remove_from_cart, and begin_checkout in the browser event layer
  17. enable the richer Woo dataLayer contract only if you want event_id and consent-aware user_data for GTM-first flows
  18. add a GTM container ID only if your site does not already inject GTM somewhere else
  19. switch GTM to sGTM compatibility mode when you want a tagging-server URL, first-party script delivery, or a custom loader path, then run the preview checks before rollout
  20. In Delivery:
  21. leave server-side delivery off if you do not have a collector, sGTM, or advertising endpoint yet
  22. if you do use server-side delivery, configure the adapter, endpoint, and timeout here
  23. if consent is required, choose the correct consent source and mode before going live
  24. Open ClickTrail > Diagnostics and run the relevant checks, especially Endpoint Test, Conflict Scan, and Woo Order Trace Lookup when applicable.
How to verify your setup
  1. Visit your site with a test URL such as ?utm_source=test&utm_medium=cpc&utm_campaign=clicktrail-install-check.
  2. Browse to another page, then place a test WooCommerce order or submit a configured form.
  3. Confirm the expected result:
  4. the WooCommerce order or form entry contains attribution values
  5. Woo purchase events appear in your GTM preview or dataLayer
  6. if Woo storefront events are enabled, view_item, view_item_list, view_cart, add_to_cart, remove_from_cart, and begin_checkout appear in GTM preview or the dataLayer
  7. if sGTM mode is enabled, the Events-tab preview checks reach the configured loader or collector URLs
  8. Diagnostics and Logs show intake or delivery activity if Delivery is enabled
Good default rollout Start with Capture plus the forms or WooCommerce integrations you already use. Add Events next if you want browser analytics signals. Add Delivery only when you are ready to send data to a collector or advertising endpoint. Form fields Fluent Forms gets hidden fields on its own; Contact Form 7 fills the ct_* 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>).

屏幕截图:

  • Forms: client-side capture for cached and dynamic pages, WhatsApp, and external form sources.
  • Events: browser event collection and Google Tag Manager loading options.
  • Delivery: optional server-side transport and privacy and consent controls.
  • Diagnostics: queue, dispatch, and error status with endpoint test and conflict scan.

升级注意事项:

1.14.0 A new visit replaces the whole last touch. Google Ads clicks without UTMs now store medium cpc, gad_source and oppref are captured, and email, phone, token and similar parameters are removed from stored URLs.

常见问题:

Where does WooCommerce attribution appear?

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.

Does ClickTrail support WooCommerce HPOS?

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.

What do the WooCommerce storefront events do?

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.

What does sGTM mode change?

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.

Does ClickTrail replace GA4 or GTM?

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.

Does it work only with WooCommerce?

No. WooCommerce is one documented conversion surface; ClickTrail also has lead-form, webhook-ingress, and broader WordPress attribution paths.

What happens if my site uses aggressive caching?

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.

Do visitors with JavaScript disabled or blocked get attribution?

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.

Do I need to add hidden fields to every form?

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.

Can I use it without server-side delivery?

Yes. Attribution capture, WooCommerce order attribution, purchase event pushes, and form enrichment all work without enabling server-side delivery.

Is consent mode required?

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.

Can I keep using my existing consent platform?

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.

更新日志:

1.14.0 1.13.1 1.13.0