---
title: "Contact Form 7"
description: "See how Pathmetrics adds visitor journey data to your Contact Form 7 email notifications automatically."
url: https://help.pathmetrics.io/en/articles/11-contact-form-7
collection: "Form Builders"
updated: 2026-02-11
language: en
---

# Contact Form 7

See how Pathmetrics adds visitor journey data to your Contact Form 7 email notifications automatically.

Pathmetrics integrates seamlessly with Contact Form 7 to track form submissions. We also add a custom mail tag by which you can include various parts of the first or last session or the entire journey all together. When you work with [**Flamingo**](https://nl.wordpress.org/plugins/flamingo/) to store submissions for Contact Form 7 you will also see our captured data next to the entries.

## How it works

When a user submits a form built with Contact Form 7, Pathmetrics automatically adds the tracked data from their journey, for each session we capture:

-   Channel used to visit the website
    
-   Pages visited and time spent
    
-   Time spent on each page
    
-   Time gaps between visits (if applicable)
    

## Append session(s) data to your email notification

<table data-id="9bada501-c0ac-4ca0-8bd6-4afabc0f4e1b" style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="601e88c4-4434-49bb-9eab-0e21810e2806"><strong>Tag</strong></p></td><td colspan="1" rowspan="1"><p data-id="da817b73-cc02-464c-812d-022d14f5098d"><strong>Description</strong></p></td></tr><tr><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap;"><p data-id="c2b547d1-d303-465a-a93d-8a945da0defe"><span style="color: inherit;">[_pathmetrics_sessions]</span></p></td><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap; border-right-width: initial; border-right-style: none; border-right-color: none;"><p data-id="c62b5e7e-97eb-4e55-b720-78a94d2bc650">All sessions (formatted)</p></td></tr><tr><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap;"><p data-id="defca198-24e3-4b1e-9f07-1163d2ca69e9"><span style="color: inherit;">[_pathmetrics_first_session]</span></p></td><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap; border-right-width: initial; border-right-style: none; border-right-color: none;"><p data-id="86f01782-b85f-46e8-85ea-d336fcf48b35">First session details</p></td></tr><tr><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap;"><p data-id="c0d56bdd-f830-412a-9a6d-557e34949ba7"><span style="color: inherit;">[_pathmetrics_last_session]</span></p></td><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap; border-right-width: initial; border-right-style: none; border-right-color: none;"><p data-id="91b48cf5-fb9d-40f3-a979-d0cdf2da4094">Last session details</p></td></tr><tr><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap;"><p data-id="0d61c65f-047c-4f28-a655-bfeb362de3f7"><span style="color: inherit;">[_pathmetrics_ first_session _referrer]</span></p></td><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap; border-right-width: initial; border-right-style: none; border-right-color: none;"><p data-id="b700770b-6636-4cb4-a47c-1b8365cb824e">First session referrer label</p></td></tr><tr><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap;"><p data-id="117b5611-c35f-4443-a0c0-3758c22d41f4"><span style="color: inherit;">[_pathmetrics_last_session_referrer]</span></p></td><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap; border-right-width: initial; border-right-style: none; border-right-color: none;"><p data-id="9fe54349-3acc-4d86-a435-718f977d16d7">Last session referrer label</p></td></tr><tr><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap;"><p data-id="f0e233a2-2a64-445b-bee9-2125275a3c64"><span style="color: inherit;">[_pathmetrics_first_session_referrer_is_paid]</span></p></td><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap; border-right-width: initial; border-right-style: none; border-right-color: none;"><p data-id="ce3c81c4-c695-44b5-8a51-e434b471619d">Whether first session referrer is paid<br>(Yes/No)</p></td></tr><tr><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap;"><p data-id="46bf0497-f5b7-4d1a-9294-b86f012f05b8"><span style="color: inherit;">[_pathmetrics_last_session_referrer_is_paid]</span></p></td><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap; border-right-width: initial; border-right-style: none; border-right-color: none;"><p data-id="59c1ee25-a950-4210-9790-887c5f35d7c5">Whether last session referrer is paid<br>(Yes/No)</p></td></tr><tr><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap;"><p data-id="f751177f-26f4-4141-83d4-d2d30c94bcb3"><span style="color: inherit;">[_pathmetrics_first_session_url_parameter:</span><br><span style="color: inherit;">gclid]</span></p></td><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap; border-right-width: initial; border-right-style: none; border-right-color: none;"><p data-id="a2d85bd0-8026-404b-97c9-5d3b726ff1ec">This is an example to get the gclid URL<br>parameter from the first session.<br><br>You can replace the&nbsp;“gclid” with any URL<br>parameter that you want to extract.</p></td></tr><tr><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap; border-bottom-width: initial; border-bottom-style: none; border-bottom-color: none;"><p data-id="f5be4d60-98c4-49a6-8313-4e2d2c393c2e"><span style="color: inherit;">[_pathmetrics_last_session_url_parameter:</span><br><span style="color: inherit;">utm_source]</span></p></td><td colspan="1" rowspan="1" style="padding: 5px 9px; text-align: left; white-space: nowrap; border-bottom-width: initial; border-bottom-style: none; border-bottom-color: none; border-right-width: initial; border-right-style: none; border-right-color: none;"><p data-id="5f34f27c-900a-4e8b-97c4-6af87a9ea4c4">Same logic as the one above, but this time<br>for the last_session.</p></td></tr></tbody></table>

## Flamingo (Example of the inbound message detail)

![](https://staticfiles.gleap.io/gattachments/Q5e2cFqU3Xo25YeLg1jcyxbJOaLyZsLvHqVoWQgxCu9wf3dcqyrZ56Ly6PLCSyTit0Y4MwbPbR7.png)

## Having an issue?

Have a look at our [troubleshooting articles](https://help.pathmetrics.io/en/collections/2-troubleshooting-and-faqs) for most common issues and solutions.
