d3creative/statamic-tracer

Tracer by D3 Creative - A Statamic UTM Builder fieldtype that generates UTM-tagged URLs for entries: social, newsletter, and paid ads.

Maintainers

Package info

github.com/d3creativeuk/statamic-tracer

Language:Vue

Type:statamic-addon

pkg:composer/d3creative/statamic-tracer

Statistics

Installs: 12

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2026-05-26 09:25 UTC

This package is auto-updated.

Last update: 2026-05-26 09:27:16 UTC


README

A UTM Builder fieldtype that generates UTM-tagged share URLs for Statamic entries, directly from the Control Panel.

Tracer adds a UTM Builder fieldtype to any blueprint that turns entry edit screens into a campaign URL builder. Think of it as Google's Campaign URL Builder baked into Statamic, so editors can grab a ready-tagged link without leaving the entry they're publishing.

Tracer by D3 Creative

Three sections in one field:

  • Social — one Copy button per platform (X, LinkedIn, BlueSky, Threads by default; configurable).
  • Newsletterutm_source=newsletter&utm_medium=email with editable utm_campaign and optional utm_id.
  • Paid Ads — free-form utm_source / utm_medium plus utm_campaign / utm_term / utm_id.

All three share a single utm_content value (defaults to the entry slug; can be overridden per-entry). Inputs auto-normalize to lowercase with underscores so your analytics stays consistent.

Installation

composer require d3creative/statamic-tracer

Then add a Tracer (UTM Builder) field to any blueprint via the Statamic CP. The field renders on the entry edit screen for any entry whose collection produces a public URL.

Configuration

Per-field config in the blueprint editor:

  • Toggle each section (Social / Newsletter / Paid Ads) on or off independently.
  • Edit the Social platforms list (label + utm_source per platform).
  • Override the default utm_medium values for Social and Newsletter.

How values persist

The field stores a nested object on the entry:

{
    "content": "european_accessibility_act_compliance_websites",
    "newsletter": { "campaign": "may_offer", "id": null },
    "paid": { "source": "google", "medium": "cpc", "campaign": null, "term": null, "id": null }
}

When every input is empty the field stores null, so blueprints without active campaign data stay clean.

Requirements

  • PHP 8.2+
  • Statamic 6.x

Support

This addon is maintained by D3 Creative. For enquiries about managed Statamic maintenance, visit d3creative.uk/services/statamic-maintenance.

License

Released under the MIT License.