
If the same Contact Form 7 form appears on several pages, an email saying “New inquiry” may omit the context your team needs. A request from a service page can mean something different from one submitted on a general contact page. Adding the submission page to the notification is a practical first step toward understanding form placement.
Contact Form 7 provides special mail-tags for page and form context. You can use them in the notification template without creating a separate form for every page. The important limits are where the form is embedded and what the recorded URL actually represents.
Separate the submission page from traffic attribution
Define the question before collecting a field. “Which page contained the form?” asks about placement. “Which campaign brought this person to the site?” asks about attribution. “Which page did they visit first?” asks about a session or journey. These are different observations.
A submission-page URL does not establish the visitor’s first landing page, referrer or advertising campaign. A person can arrive from a campaign, browse several pages and submit somewhere else. If campaign context is required, use a documented attribution design such as the one discussed in our CF7 UTM tracking guide, and preserve the distinction in reports.
For a placement report, choose a simple definition: the page hosting the form when the inquiry was submitted. Record unknown values explicitly. Do not fill a missing page with a guess based on the service mentioned in the message.
Add page context to the Mail template
In the form’s Mail settings, place the following lines in the notification body. They are mail-tags, not visitor-facing input fields. Keep your existing message fields and recipient configuration intact while adding this context.
Form: [_contact_form_title]
Submission page: [_url]
Post title: [_post_title]
Post URL: [_post_url]
Post ID: [_post_id]
Submitted: [_date] [_time]
The special mail-tags reference documents [_url] for the page where the form is placed. Post-related tags have a narrower condition: they are available when the form is inside post content. A form inserted through a widget or theme template can therefore produce blank post values. Date and time use the site’s WordPress formatting settings.
The Mail configuration guide explains how mail-tags are used within notification settings. For this change, the body is the clearest place to keep context readable. Avoid turning a long page URL into the entire email subject, where it becomes awkward to scan.
Inventory every placement of a shared form
Create a short placement list before testing. Include the normal contact page, service pages, footer widgets, modal dialogs and any page-builder templates that render the same form. The embedding method matters as much as the visible design.
Use an expected-results table. It gives the person making the change a way to identify a real mismatch instead of declaring every blank field a plugin failure.
| Placement | What to inspect | What to record |
|---|---|---|
| Form in page content | Submission URL and post context | Whether both identify the intended page |
| Shared footer or template | Submission URL; possibly blank post tags | Which values are actually available |
| Modal on several pages | Page URL and form title | Whether each host page remains distinguishable |
| Translated page | Language-specific URL and title | Whether reporting should combine languages |
| Page with query parameters | The value received in the notification | Which parameters, if any, are retained |
Do not assume every embedding setup returns the same URL representation. Verify trailing slashes, query parameters and translated paths from received test notifications. Record observed behavior rather than relying on the browser address bar alone.
Run a small acceptance check
Use synthetic contact details and a recognizable test marker. Submit from each listed placement, then inspect the notification body. Confirm that the mail-tags have resolved, the page is understandable and the original inquiry fields remain present.
Repeat from a second page that uses the same form. This catches a common design mistake: saving a fixed page label in the form configuration and assuming it changes with every embedding. If the page context is blank or unexpected, first check whether the chosen tag applies to that embedding method.
Record one expected result and one observed result per test. If you cannot reconcile them, keep the new reporting field marked unverified. The browser’s CF7 events can help with separate client-side tracking, but they are a different implementation path; see our DOM events guide before adding event listeners.
Normalize page groups without destroying the raw context
Raw URLs often contain more detail than a monthly placement report needs. Keep the received value in the restricted source record, then create a separate reporting field for a stable page group such as Contact, Consulting or Support. Define the mapping so another team member can reproduce it.
Decide explicitly whether translated service pages should form one group. Treat renamed paths with a dated mapping so a redesign does not appear to erase historical inquiries. Keep an Unknown group for unresolved values rather than silently dropping those rows.
Inspect URL parameters before sharing raw records broadly: a site’s URLs can contain more than campaign names. Summaries usually need a page label or path, not the full inquiry, visitor email and every parameter. Keep the report focused on the decision it supports.
Interpret counts with the right denominator
Ten inquiries from one page and five from another do not establish which placement converts better. The first page may have received far more eligible visits. Report inquiry counts as counts until you have a compatible exposure measure covering the same pages, period and inclusion rules.
Also distinguish an accepted inquiry, a notification generated by the site and an email reaching a person’s inbox. Page context does not prove delivery or lead quality. Label test entries and spam exclusions before building the summary.
Add a placement section to your monthly CF7 report, showing the period, known placements and unknown count. Start with the free CF7 Analytics plugin for its documented WordPress reporting features, and verify any page-level breakdown you need separately. Adding mail-tags alone does not automatically create a historical page-attribution dashboard.
Sources and review scope
Official documentation reviewed on September 29, 2026. Instructions describe a workflow to validate in your own environment; they are not a report of tests performed on your site.
