Capture Google Analytics data in Contact Form 7 (without coding)

✔️ Capture Google Analytics data on a lead level ✔️ Store Google Analytics data in Contact Form 7
Track Google Analytics data in Contact Form 7

What's on this page:

Track the source of your leads (free trial)

Google Analytics identifies where your traffic comes from but it doesn’t link the leads to a precise acquisition channel.

Similarly, tracking a customer back to the exact channel or ad that converted them is not feasible.

Why? Because Google Analytics provides a high-level view of lead sources, showing how many leads were generated from a campaign in an aggregated level, and it doesn’t offer insights into each lead.

❌ As a result, you remain unaware of which channels are delivering value. And you allocate resources across channels without measuring their true impact.

✅ Our goal should be to track leads individually. So when one converts to a paying customer, we can trace it back to the channel that generated it.

Luckily, there’s a simple way to track each lead and a customer to its original channel.

Let’s take it step by step!

How to track Google Analytics data in Contact Form 7

Step 1: Add Leadsources in your website

Leadsources simplifies lead source tracking by monitoring up to 7 data points per lead, similar to Google Analytics. After installation, it tracks 7 unique lead source data for every lead you capture:

  • Channel
  • Source
  • Campaign
  • Term
  • Content
  • Landing page
  • Landing page subfolder

➡️ Sign up to Leadsources.io for free
➡️ Add the Leadsources tracking code to your site

Step 2: Add the hidden fields in Contact Form 7

Google Analytics hidden fields Contact Form 7

Hidden fields are not visible to users but are used to store information submitted with the form.

When a submission is made through your Contact Form 7, Leadsources automatically inputs the lead source data into the hidden fields, which is saved in your Contact Form 7.

➡️ How to add hidden fields in Contact Form 7

Step 3: Capture lead source data in Contact Form 7

Google Analytics data Contact Form 7

Leadsources records lead source data (channel, source, etc.) as soon as users visit your website.

The captured data is placed into the hidden fields of Contact Form 7.

Upon submitting the form, the lead source data is shown alongside the lead details in Contact Form 7.

How does Leadsources work?

Leadsources captures the lead source data when someone visits your site and places it into the hidden fields of your form. Once submitted, this data, including lead details like name and email, is forwarded to Contact Form 7.

Leadsources tracks the origin of the lead data for each lead:

Lead source dataFetched automatically
Channel
Source
Campaign✅ OR use UTM_campaign
ContentUTM_content parameter is required
TermUTM_term parameter is required
Landing page
Landing page subfolder

When UTM parameters are unavailable, for example with organic Google search or mentions in articles, Leadsources still records the following lead source data:

✅Channel
✅Source
✅Campaign
✅Landing page
✅Landing page subfolder

Leadsources differentiates itself by capturing lead source data across both paid and organic marketing channels.

Choose a channel to view the lead source details that Leadsources inserts into your form.

Performance reports: Lead, sales, and revenue by source

By monitoring lead source data in Contact Form 7, you can generate reports on performance such as:

  • Leads, sales, and revenue by channel
  • Leads, sales, and revenue by source
  • Leads, sales, and revenue by campaign
  • Leads, sales, and revenue by term (e.g. keyword or adset)
  • Leads, sales, and revenue by content (e.g. ad)
  • Leads, sales, and revenue by landing page
  • Leads, sales, and revenue by landing page subfolder

This gives you the flexibility to adjust your marketing budget based on the sources, campaigns, terms, and content that yield the highest returns in leads, sales, and revenue.

Now, we’ll review some of the reports you can create.

1. Lead source reports

Create detailed performance reports that reflect the lead volume generated by:

  • Channel
  • Source
  • Campaign
  • Term (e.g. keyword or adset)
  • Content (e.g. ad)
  • Landing page
  • Landing page subfolder

Example #1: Leads by channel

This report shows which channel is the most effective at generating leads.

Leads by channel

Example #2: Leads by campaign

Now, you have the ability to concentrate on a particular channel (e.g., Paid Search) and track the number of leads produced by each campaign.

Leads by campaign

Example #3: Leads by keyword and ad

After determining the Paid Search campaign that yields the most leads, you can investigate which particular keyword or ad is generating them.

2. Sales and revenue source reports

Now that we understand which channel, source, campaign, term, and content are generating leads, we must examine if those leads are converting into sales and revenue.

To track sales and revenue from various sources, connect Contact Form 7 with a CRM, allowing you to analyze data across channels, sources, campaigns, terms, content, landing pages, and subfolders.

With these insights, you can enhance your marketing strategy by targeting the channels, sources, campaigns, terms, and content that generate the most sales and revenue.

Moreover, you can create diverse reports focused on sales and revenue, like:

  • Sales and revenue by channel
  • Sales and revenue by source
  • Sales and revenue by campaign
  • Sales and revenue by term (e.g. Keywords)
  • Sales and revenue by content (e.g. Ads)
  • Sales and revenue by landing page
  • Sales and revenue by landing page subfolder

To provide an example, let’s explore the following scenario:

ChannelsSearch PaidSocial Paid
Leads5075
Sales56
Avg. Order Value$150$100
Revenue$750$600

After conducting campaigns on Google Ads and Facebook Ads Manager, the “Leads by Channel” report demonstrated that Facebook (Social Paid) generated more leads than Google (Search Paid).

By reviewing the sales and revenue data in your CRM it has revealed that Search Paid brought in higher revenue with fewer leads than Social Paid, which led you to reallocate your budget to favor Search Paid.