=== NMR Context Fields for CF7 ===
Contributors: mirceatm
Donate link: https://paypal.me/mirceatm
Tags: cf7, contact form 7, hidden fields, utm, tracking
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Auto-inject page URL, page title, and HTTP referrer as hidden fields into every Contact Form 7 submission — zero configuration needed.

== Description ==

When a Contact Form 7 form is submitted, do you know which page it came from? Which campaign drove the lead? Context Fields for CF7 automatically injects contextual data into every CF7 submission so you always have the full picture.

**Works out of the box — activate and you're done.**

Every CF7 form automatically receives three hidden fields:

* **Page URL** — the full URL of the page where the form was submitted
* **Page Title** — the title of that page
* **HTTP Referrer** — where the visitor came from before landing on this page

These values are appended to the email notification under a `-- Submission Context --` section.

= Want more? =

**[Context Fields for CF7 Pro](https://namir.ro/downloads/nmr-context-fields-for-cf7-pro/)** adds:

* UTM parameters (utm_source, utm_medium, utm_campaign, utm_term, utm_content) — read from URL
* IP Address — server-side
* User Agent — browser/device string
* Submission timestamp
* Logged-in user data (name, email, role)
* Geo-IP (Country, City) — via free IP lookup, cached 24h
* `[context_field]` custom tag — add any data point to your CF7 form tag list
* Per-field source control — choose exactly which data points appear in each form
* Settings page to configure which fields appear globally

= Privacy Notices =

With the default configuration, this plugin:

* does **not** track users by stealth — it only records data at the moment a form is submitted
* does **not** send any data to external servers
* does **not** use cookies
* records the visitor's IP address only in the Pro version, and only when explicitly enabled

== Installation ==

1. Upload the `context-fields-for-cf7` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. That's it — no configuration needed.

All CF7 form email notifications will now include a `-- Submission Context --` block with the page URL, page title, and referrer.

== Screenshots ==

1. screenshot-1.jpg

== Changelog ==

= 1.0.0 =
* First version.
* Auto-inject page URL, page title, and referrer into all CF7 submissions.
* Dismissible admin notice.
* Settings page with Pro feature overview and upsell.
