WordPress plugin

DuckDive WP: free attribution for every WordPress form.

A free WordPress plugin that captures referrer, UTM and click ID data on every form submission. Multi-touch attribution with no configuration. Open source, and it updates itself inside WordPress.

Works with your forms

  • Standard HTML
  • HubSpot
  • Go High Level
  • Elementor Forms
  • Contact Form 7
  • Gravity Forms
  • WPForms
  • Ninja Forms
  • Fluent Forms
  • Salesforce Web-to-Lead

Native HTML forms work out of the box. Popular form plugins and embeds are supported too.

Features

Attribution on every lead, without the setup.

Stop losing credit for your best channels. DuckDive WP records the visitor journey and attaches it to every form submission.

No configuration

Install and activate. Forms across your site are tracked automatically, with no developer needed.

First-party tracking

Attribution is stored in the browser's localStorage on your own domain, not in third-party cookies.

Multi-touch journey

First touch, last touch and every visit in between, so you know what opened the door and what closed the lead.

AI source detection

Referrals from ChatGPT, Claude, Gemini, Perplexity and other AI assistants are labelled as their own source.

Leads inside WordPress

See every lead with its full attribution in the WordPress admin, and export the journey, click IDs, UTMs and form data to CSV.

Automatic updates

New releases appear on your WordPress Plugins screen from GitHub. One-click upgrade, no FTP and no token setup.

What it captures

Everything you need, captured automatically.

Click IDs, UTM parameters, referrers and the full multi-touch journey, all saved to your WordPress database.

Click IDs

Identify the ad behind the visit, even when the URL is cleaned before the form is submitted.gclidgbraidwbraidfbclidmsclkidli_fat_idttclidyclid

UTM parameters

Standard campaign tags, kept across the whole visit and attached to every form submission.utm_sourceutm_mediumutm_campaignutm_termutm_content

Referrer detection

Referring sites are classified using Matomo's source lists, into organic search, social, AI assistants, referral and direct.organicsocialai_assistantreferraldirect

Full touch journey

Every visit from a new source is added to the journey, with its landing page and time.first_touchlast_touchall_toucheslanding_pagetimestamp

How it works

Up and running in minutes.

No code changes, no developer and no integration project.

  1. Download

    Get the latest duckdive-attribution.zip from GitHub Releases.

  2. Upload

    In WordPress Admin, go to Plugins, Add New, Upload Plugin.

  3. Activate

    Click Activate. Tracking starts on the next page load.

  4. View leads

    Open DuckDive, then Leads, to see every form submission with its attribution.

Developer friendly

Read attribution from any script.

Every visit, click ID and UTM is exposed through a global DuckDive object. Use it to fill hidden fields, fire conversion pixels or pass data to your own analytics.

// Get all attribution data
DuckDive.getAttribution()
// { visitorId, firstTouch, lastTouch, allTouches }

// Get the visitor ID
DuckDive.getVisitorId()

// Submit a form programmatically
DuckDive.submit({
  email: 'jane@example.com',
  name: 'Jane Doe'
}, function (success) {
  console.log('Saved:', success);
});

// Refresh attribution capture
DuckDive.capture()

Built on your site, for your site

All attribution data lives in your WordPress database. No third-party cookies and no shared tracking pixels. The optional referrer lookup service only receives a hostname, never personal data.

  • First-party only
  • No third-party cookies
  • Open source, GPL 2.0

FAQ

DuckDive WP questions, answered.

Is DuckDive WP free?

Yes. It is free to download and free to use on as many WordPress sites as you want. The plugin is open source under the GPL 2.0 license.

Does DuckDive WP use cookies?

No third-party cookies. Attribution is kept in the browser's localStorage on your own domain and saved to your WordPress database when a form is submitted.

Which forms does it work with?

Standard HTML forms work out of the box. HubSpot, Go High Level, Elementor Forms, Contact Form 7, Gravity Forms, WPForms, Ninja Forms, Fluent Forms and Salesforce Web-to-Lead are supported too.

Where is the attribution data stored?

In your WordPress database. The optional referrer lookup service only receives a hostname, never personal data.

How do updates work?

New releases appear on your WordPress Plugins screen and upgrade in one click. Release notes are on GitHub.

Do I need a DuckDive AI account to use the plugin?

No. DuckDive WP works on its own. DuckDive AI is data infrastructure for AI agents: it connects your agents to the marketing and operations data of every website and location you run. It is a separate product, free for 2 sites.

Know where your leads come from. Then ask why.

DuckDive WP is free. When you want your AI to explain the traffic behind those leads, DuckDive AI connects it to Google Analytics, Search Console and Google Ads.

Start free

Free for 2 sites · No credit card