Title: SourceTag – Lead Source Tracking for Forms
Author: SourceTag.io
Published: <strong>November 11, 2026</strong>
Last modified: November 11, 2026

---

Search plugins

![](https://ps.w.org/sourcetag/assets/banner-772x250.png?rev=3795994)

![](https://ps.w.org/sourcetag/assets/icon.svg?rev=3795994)

# SourceTag – Lead Source Tracking for Forms

 By [SourceTag.io](https://profiles.wordpress.org/sourcetagio/)

[Download](https://downloads.wordpress.org/plugin/sourcetag.1.0.6.zip)

 * [Details](https://wordpress.org/plugins/sourcetag/#description)
 * [Reviews](https://wordpress.org/plugins/sourcetag/#reviews)
 *  [Installation](https://wordpress.org/plugins/sourcetag/#installation)
 * [Development](https://wordpress.org/plugins/sourcetag/#developers)

 [Support](https://wordpress.org/support/plugin/sourcetag/)

## Description

SourceTag populates hidden fields in your contact forms with marketing attribution
data. When a lead submits a form, you see which channel, campaign, and keyword brought
them in.

**What gets captured:**

 * Channel (Paid Search, Organic Social, Email, etc.)
 * UTM parameters (source, medium, campaign, term, content)
 * Click IDs (gclid, fbclid, msclkid, gbraid, wbraid)
 * Landing page and referrer
 * Visit count and days to conversion
 * Device type

**Form builders:**

Works with Contact Form 7, Gravity Forms, WPForms, Elementor Forms, Formidable Forms,
HubSpot Forms, and any HTML form that supports hidden fields.

**Why use the plugin instead of just adding the script tag?**

The plugin sets cookies via PHP (HTTP headers) instead of JavaScript. Safari, Brave,
and other privacy-focused browsers cap JavaScript cookies at 7 days. Server-set 
cookies last up to 400 days.

### External services

This plugin connects to SourceTag, a hosted lead attribution service. It does not
work without a SourceTag account.

It loads your SourceTag tracking script from `cdn.sourcetag.io` on every front-end
page. On form submit, the script sends your site ID and a timestamp to `cdn.sourcetag.
io`. No form contents or personal data are sent to SourceTag.

SourceTag terms: https://sourcetag.io/legal/terms
 SourceTag privacy policy: https://
sourcetag.io/legal/privacy

The `_sourcetag` cookie is set on your visitors’ browsers. Make sure your privacy
policy and cookie notice cover it where your visitors’ jurisdiction requires consent.

## Screenshots

[⌊Settings > SourceTag: paste your Script URL and turn on 400-day server-side cookies.⌉⌊
Settings > SourceTag: paste your Script URL and turn on 400-day server-side cookies
.⌉[

Settings > SourceTag: paste your Script URL and turn on 400-day server-side cookies.

[⌊A form entry with the lead's first and last click channel, campaign, keyword, 
landing page and click ID filled in.⌉⌊A form entry with the lead's first and last
click channel, campaign, keyword, landing page and click ID filled in.⌉[

A form entry with the lead’s first and last click channel, campaign, keyword, landing
page and click ID filled in.

## Installation

 1. In WordPress, go to Plugins > Add New Plugin and search for SourceTag.
 2. Click Install Now, then Activate.
 3. Go to Settings > SourceTag and paste your Script URL from the [SourceTag dashboard](https://app.sourcetag.io).
 4. Add hidden fields to your forms. The [SourceTag docs](https://sourcetag.io/docs)
    cover each form builder.

## FAQ

### Is SourceTag free?

SourceTag is a paid service with a 14-day free trial, no credit card needed. The
plugin is free, but it needs a SourceTag account to work. See [pricing](https://sourcetag.io/pricing).

### Where do I get my script URL?

Sign up at [sourcetag.io](https://sourcetag.io), add your site, and copy the script
URL from the Install Script section on your site’s page.

### Does this create hidden fields in my forms?

No. You add hidden fields to your forms yourself. SourceTag detects them and fills
in the values when a visitor submits. The docs cover how to do this for each form
builder.

### What about Safari and Brave?

JavaScript cookies in these browsers expire after 7 days. The plugin’s server-side
cookie option (on by default) sets the cookie via PHP instead, which these browsers
allow for up to 400 days.

### Do I need a consent banner?

The plugin and script set one first-party cookie, `_sourcetag`, on your domain. 
Whether you need consent for it depends on where your visitors are. If you already
gate analytics cookies behind a consent tool, load the SourceTag script the same
way.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“SourceTag – Lead Source Tracking for Forms” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ SourceTag.io ](https://profiles.wordpress.org/sourcetagio/)

[Translate “SourceTag – Lead Source Tracking for Forms” into your language.](https://translate.wordpress.org/projects/wp-plugins/sourcetag)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/sourcetag/), check 
out the [SVN repository](https://plugins.svn.wordpress.org/sourcetag/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/sourcetag/) by [RSS](https://plugins.trac.wordpress.org/log/sourcetag/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.6

 * First release on WordPress.org

## Meta

 *  Version **1.0.6**
 *  Last updated **1 week ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [attribution](https://wordpress.org/plugins/tags/attribution/)[contact form](https://wordpress.org/plugins/tags/contact-form/)
   [lead source](https://wordpress.org/plugins/tags/lead-source/)[tracking](https://wordpress.org/plugins/tags/tracking/)
   [UTM](https://wordpress.org/plugins/tags/utm/)
 *  [Advanced View](https://wordpress.org/plugins/sourcetag/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/sourcetag/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/sourcetag/reviews/)

## Contributors

 *   [ SourceTag.io ](https://profiles.wordpress.org/sourcetagio/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/sourcetag/)