plugin-icon

ClickTrail – UTM, Click ID & Ad Tracking (with Consent)

By Vizuh·
Most WordPress sites lose campaign data the moment a visitor clicks away from the landing page. If the user doesn’t convert immediately, the UTM/click …
Version
1.2.2
Last updated
Dec 16, 2025
ClickTrail – UTM, Click ID & Ad Tracking (with Consent)

Most WordPress sites lose campaign data the moment a visitor clicks away from the landing page. If the user doesn’t convert immediately, the UTM/click ID context often never makes it into your form entry or WooCommerce order — leaving you with “Direct / None” conversions and a huge reporting blind spot.

ClickTrail fixes that.

It captures first-touch and last-touch UTMs + click IDs (gclid, fbclid, ttclid, msclkid, and more), stores them in first-party cookies (with consent), and automatically injects that attribution into supported form submissions and WooCommerce orders — even when the buyer journey takes multiple pages or multiple sessions.

Why this matters (ROI, not just tracking)

  • Illuminate “lost conversions”: Without proper UTM persistence, marketing becomes guesswork — you’re effectively optimizing in the dark. ClickTrail ensures each lead/order carries its true source so you can prove what’s working.
  • Reduce wasted ad spend: Industry reports estimate large chunks of marketing spend are wasted when measurement is incomplete or misattributed. ClickTrail helps you recover missing signals so you can cut spend that isn’t converting and scale what is.
  • Make better decisions with real data: Many marketers still don’t trust their attribution data. ClickTrail gives you clean first-touch and last-touch context inside WordPress — where the conversion actually happens.

Concrete example

A visitor clicks a Google Ads campaign, browses a few pages, leaves, and comes back next week to buy. With ClickTrail, the WooCommerce order still records the original utm_source=google and the relevant campaign/click IDs (first-touch + last-touch). Without this type of persistence, that purchase often shows up as “Direct” or loses the campaign context in your lead/order records.

Key Features

  • Accurate attribution (first + last touch): Persist first-touch and last-touch UTMs and click IDs for up to 90 days, then inject them into supported forms and WooCommerce orders automatically.
  • WooCommerce insights: View a “Source” column in orders and a detailed attribution meta box on each order edit screen.
  • GA4-ready purchase events: Push enriched purchase events from WooCommerce thank-you pages, including campaign data and line items, while preventing duplicate firing.
  • Broad click ID coverage: Capture IDs from Google (gclid, wbraid, gbraid), Meta (fbclid), TikTok (ttclid), Microsoft (msclkid), Twitter/X (twclid), LinkedIn (li_fat_id), Snapchat (ScCid), and Pinterest (epik).
  • Event tracking built-in: Track searches, file downloads, scroll depth (25%, 50%, 75%, 90%), time on page, logins, signups, and comments with dataLayer pushes.
  • Privacy-aware by default: Built-in consent banner + Google Consent Mode defaults, with Strict, Relaxed, or Geo-based modes.

Consent Options

  • Built-in consent banner with Google Consent Mode defaults injected in the .
  • Configure strict, relaxed, or geo-based consent behavior to align with your region and policies.
  • Control cookie duration and whether consent is required before storing attribution.
  • Optional admin warnings help you avoid accidentally storing personal data inside UTMs/campaign parameters.

GA4 & Analytics Integrations

  • GA4-ready purchase event with campaign data and line items.
  • dataLayer events for WooCommerce, WhatsApp (wa_click), and engagement tracking (client/server-side).
  • Manual Google Tag Manager container ID injection for sites without a theme-level GTM snippet.

Supported Platforms

  • Forms: Contact Form 7 (hidden fields auto-populated), Fluent Forms, and Gravity Forms scaffolding for dynamic population.
  • Commerce: WooCommerce attribution metadata, session count, and admin UI enhancements.
  • Messaging: WhatsApp click detection for wa.me, whatsapp.com, and api.whatsapp.com links.

References (optional, for credibility)

  • Why WordPress/UTM attribution breaks without persistence: https://pilotdigital.com/blog/how-to-track-source-campaign-and-other-data-in-hidden-fields/
  • “Marketing in the dark without proper UTM tracking” framing: https://wpmayor.com/afl-utm-tracker/
  • Ad waste + measurement/misattribution overview: https://cdn2.hubspot.net/hubfs/1878504/Ebook-The-Waste-in-Advertising-Stats-and-Solutions-of-Misattribution.pdf
  • Confidence gap in attribution data (industry survey coverage): https://www.moengage.com/blog/branch-state-of-app-growth-report-moengage-perspective/
  • ROI/waste/touchpoints stats roundup (benchmarks vary): https://marketingltb.com/blog/statistics/marketing-attribution-statistics/
Freeon Business plan
Tested up to
WordPress 6.9
This plugin is available for download for your site.