GA4 can’t show which lead came from which keyword
Analytics counts sessions and conversions in totals. It can’t tell you that Sarah’s consultation request came from “family lawyer sydney” last Tuesday, or which campaign your best client clicked.
Lead source tracking and website analytics
SourceXray attaches the channel, campaign, keyword, first touch and last touch to every form submission, and shows live visitor stats with the conversion rate of every channel, campaign and page. See which ads, posts and pages actually produce enquiries.
Works with WordPress, Webflow, Shopify, HubSpot and any site via one line of code.
| Lead | Channel | Source / medium | Campaign | Keyword | First touch | Visits |
|---|---|---|---|---|---|---|
Sarah M. |
Paid Search | google / cpc | Family Law | family lawyer sydney | Organic Search | 3 |
James T. |
AI Assistants | chatgpt / referral | (not set) | (not set) | AI Assistants | 1 |
Priya K. |
Google Business Profile | google / organic | gbp | (not set) | Organic Search | 2 |
Tom R. |
instagram / social | (not set) | (not set) | 4 | ||
Emma L. |
newsletter / email | Client update | (not set) | Paid Search | 5 | |
Daniel W. |
Direct | (direct) / (none) | (not set) | (not set) | Paid Search | 2 |
Your reports know how many people visited. Your inbox knows who enquired. The link between the two, the ad, keyword or post behind each lead, gets lost along the way.
Analytics counts sessions and conversions in totals. It can’t tell you that Sarah’s consultation request came from “family lawyer sydney” last Tuesday, or which campaign your best client clicked.
UTM tags disappear as soon as a visitor clicks through to a second page, and copy-pasted field scripts stop working after a plugin update. Nobody notices until the monthly report is wrong.
Returning visitors, bookmarks and in-app browsers all show up as Direct. The channel that actually found the customer gets no credit, because the first visit was never recorded.
No developer needed. SourceXray records the source on every visit and hands it to your forms the moment someone enquires.
Paste the script into your site’s head, or add it through Google Tag Manager or your website builder’s header settings. One small file, loaded asynchronously.
Add hidden fields to your forms so source details reach your CRM and email notifications. Or let SourceXray capture submissions from your form builder automatically.
Channel, source, campaign, keyword, landing page, first and last touch, visits and days to convert. In your inbox, your CRM and your SourceXray dashboard.
<head>
<script async
src="https://cdn.sourcexray.com/sx.js"
data-site="sx_your_site_key"></script>
Built for marketers who need to prove what’s working, and for agencies who report on it every month.
Keyword, campaign, ad group, ad, match type, network and device for every Google Ads lead, from a copy-paste tracking suffix we generate. The exact typed query for Microsoft Ads.
See the channel that first found each lead and the one that converted them, plus the number of visits, pages viewed and days to convert.
Visits from ChatGPT, Perplexity, Gemini, Copilot and Claude get their own AI Assistants channel instead of hiding inside Referral.
SourceXray waits for your form builder’s real success event, so failed and invalid submissions never count as leads.
Source details are written into hidden form fields, and the WordPress plugin adds them to form notification emails, so they reach your CRM, inbox and spreadsheets.
Throwaway email addresses, web links in the name field and repeated submissions are set aside as spam, so they never reach your reports, alerts or CRM.
Live visitors, pages, clicks on calls and emails, goals and funnels, with the conversion rate of every channel and campaign. No IP addresses, no fingerprinting, consent mode support.
Instant alerts by email or Slack, HubSpot and GoHighLevel sync, Zapier and webhooks, and conversions sent back to Google Ads and Meta. See integrations
Channel names follow GA4’s default channel grouping, so your team already knows how to read them.
The same one-line script now shows your website traffic next to your leads: live visitors, pages, sources and clicks, with the conversion rate of every channel, campaign, keyword and landing page. No extra code and no IP addresses.
Visits, leads and conversion rate by channel, source, campaign, keyword, landing page, country and device, compared with the previous period.
Every visit as it happens: where it came from, the pages viewed in order, the calls and emails clicked, and whether it became a lead.
Enquiries, calls, emails and WhatsApp are counted from day one. Add your own pages and buttons, see where visitors drop off, and send any goal to GA4 and Google Ads in one click.
Visitors, leads and conversion rate for all your websites over 24 hours, 7, 30 and 90 days, with who is on each site right now.
Note when you changed a page, an offer or an ad budget, and see the conversion rate before and after.
No IP addresses or personal details, country from the time zone, consent mode support. Reports stay for as long as your account is open.

SourceXray captures each lead once, then sends it on with its channel, campaign, keyword, landing page and first visit. It works with the forms on your site, whatever builder they use, with no hidden fields to add, and spam is filtered out first.
Email, Slack, Microsoft Teams, Google Chat or Discord within seconds of the form being sent, or one daily summary. Reply to the email to answer the lead.
Every plan
Each lead is created or updated as a contact, with the channel, campaign, keyword, landing page and first visit in their own fields. We create the fields for you.
Pro and Agency
Send every lead to Google Sheets, Pipedrive, Monday or 7,000 more apps through Zapier or Make, or to your own server with signed webhooks.
Pro and Agency
Tell Google Ads and Meta which clicks became leads, so their bidding finds more of them. Send only the leads you mark as Qualified or Won to optimise for real customers.
Pro and Agency
The SourceXray plugin adds the lead source to the notification emails of Gravity Forms, Elementor, Contact Form 7, WPForms, Ninja Forms, Fluent Forms, Formidable and more, saves it with Gravity Forms entries and WooCommerce orders, and installs the tracking script for you. No hidden fields to add. Included on every plan, ready to download from your dashboard.
Type what you want tracked in plain English. AI Tracking Setup reads your live Tag Manager container, GA4 and website, builds the tags, triggers and key events, and publishes them only after you approve. Included in every plan.
Connect with Google in about a minute, or share access with one SourceXray email the way you’d add a colleague. We never see your Google password.
“Track every enquiry as a lead and send it to Google Ads.” AI Tracking Setup checks what you already track, so nothing is ever counted twice.
See every tag, trigger and event name before anything changes. Test-build it in a safe workspace, rename events, then publish in one click.
Open your website with the live checker, click around, and watch every GA4 event your browser sends. AI Tracking Setup explains what works. Every change can be rolled back.
Track every enquiry as a lead in GA4 and Google Ads
Your Google tag and enhanced measurement already work, but GA4 doesn’t know about leads yet. I’ll use the sx_lead event SourceXray fires after every successful form, so failed submissions never count.
Tracking plan Proposed
sx_leadgenerate_lead with lead_channelgenerate_leadLive in GTM-W7K2PQ, version 43
Reads your container, GA4 enhanced measurement, key events and the last 7 days of events before suggesting anything.
SourceXray confirms each form really succeeded, then gives Tag Manager one clean sx_lead event with the channel, campaign and keyword.
It only adds clearly labelled items (“SourceXray - …” or your own label) and never edits or deletes yours. Nothing goes live without your approval, and no personal data goes to GA4.
Free 5, Starter 50, Pro 150 and Agency 400 AI messages a month. Test builds, publishing and rollbacks don’t use messages.
Since 2013, Google has removed the search term from organic clicks before the visitor reaches your website. That’s why Google Analytics shows (not provided). No tool can see it, whatever its marketing says.
So SourceXray shows you what is real: the exact keyword for paid ads, the exact query wherever the platform passes it, and the channel, search engine and landing page for organic visits. No guesses and no modelled data.
Want organic search terms in aggregate? Google Search Console shows them by page.
Start on the free plan and move up when you need more websites, more leads or a longer history. All prices in USD.
Try it on one website, free for as long as you like.
$0/month
No credit card needed Start freeWhat you get:
For one business website with steady enquiries.
$29/month
Billed monthly Choose StarterEverything in Free, plus:
For several websites, or when leads need to reach your CRM and ad accounts.
$59/month
Billed monthly Choose ProEverything in Starter, plus:
For agencies tracking leads across client websites.
$159/month
Billed monthly Choose AgencyEverything in Pro, plus:
Every plan tracks every lead the same way. Paid plans give you more websites, leads and history, and Pro adds the CRM, Zapier and ad platform integrations. Plans list only what works today. Cost per lead, team members, client workspaces and branded client reports are on our roadmap with target dates.
| Feature | Free | Starter | Pro | Agency |
|---|---|---|---|---|
| How much you get | ||||
| Websites | 1 | 1 | 5 | 25 |
| Leads saved a monthYour forms and emails keep working past the limit | 25 | 500 | 3,000 | 15,000 |
| Page views a monthFor visitor stats. Leads are never limited by this | 5,000 | 25,000 | 100,000 | 500,000 |
| Lead history | 30 days | 12 months | 24 months | 24 months |
| AI Tracking Setup messages a month | 5 | 50 | 150 | 400 |
| Lead tracking | ||||
| Channel, source, campaign and exact paid keyword on every lead | ||||
| First visit and latest visit, with visits and days to convert | ||||
| ChatGPT, Perplexity, Gemini, Claude and Copilot as their own channel | ||||
| Works with the forms you already have, no rebuilds | ||||
| Lead source in your form emails and hidden fieldsOn every lead, with no monthly limit | ||||
| WordPress plugin | ||||
| Spam filtering | ||||
| Reports | ||||
| Channels, sources, campaigns, keywords and landing pages | ||||
| First versus latest visit report | ||||
| Mark leads as Qualified or Won | ||||
| CSV export | ||||
| Visitor stats | ||||
| Live visitors and a visitor streamEvery page viewed and every click, visit by visit | ||||
| Conversion rate by channel, campaign, keyword and landing page | ||||
| Call, email, WhatsApp, download and button clicks | ||||
| Goals and funnels | ||||
| Send goals to GA4 and Google Ads in one clickNo AI messages used | ||||
| Change notes with the conversion rate before and after | ||||
| Visitor reports kept for as long as your account is open | ||||
| Pages, countries, devices and every website side by side | ||||
| Alerts | ||||
| Instant alerts or a daily summaryEmail, Slack, Microsoft Teams, Google Chat and Discord | ||||
| Integrations | ||||
| HubSpot and GoHighLevelContacts created with the source filled in | ||||
| Zapier, Make and webhooks | ||||
| Google Ads and Meta conversionsSo their bidding learns from real leads | ||||
| AI Tracking Setup | ||||
| GA4 and Tag Manager audit, tracking built from plain-English requestsNothing goes live until you approve it | ||||
Every lead from every supported form reaches your SourceXray dashboard automatically, with its full source, and with no form changes at all.
For the source to also appear in the form’s own emails or CRM: plain HTML forms, Webflow forms and Shopify contact forms get the fields added automatically. On WordPress, the SourceXray plugin adds the source to the notification emails of Gravity Forms, Elementor, Contact Form 7, WPForms, Ninja Forms, Fluent Forms and Formidable with no form changes. Other builders, such as HubSpot forms, only save fields that exist in the form, for every tool, so you add one hidden field once (about two minutes, step-by-step in the app) and SourceXray fills it on every submission.
Or skip fields altogether: send every lead with its source straight to your inbox, Slack, HubSpot, GoHighLevel or Zapier from the Integrations page.
Yes. Lead alerts by email, Slack, Microsoft Teams, Google Chat and Discord are on every plan, instantly or as a daily summary. On Pro and Agency you can also sync contacts to HubSpot and GoHighLevel with the source in their own fields, and send leads to Zapier, Make or any webhook. They work with every form SourceXray captures, because they start from the lead it already recorded.
Yes, on Pro and Agency. Google Ads imports which ad clicks became leads from a private feed address, with no API access or developer token needed. Meta receives each lead through its Conversions API, with the email and phone hashed before they leave SourceXray. Mark leads as Qualified or Won and send only those, so the platforms bid for real customers rather than form fills.
Leads with a throwaway email address, a web link in the name field, or the same email sent three or more times in ten minutes are filed as spam. They aren’t counted in your monthly leads and are never sent to your alerts, CRM or ad platforms, and you can mark any of them as not spam in one click.
You connect Google Tag Manager and GA4 by adding one SourceXray email, then ask for what you want in plain English. AI Tracking Setup reads your live container, GA4 settings, recent events and your website, and proposes a plan listing every tag, trigger and event. You can test-build it safely, rename events, then publish it with one click and roll it back any time. More detail here.
Nothing goes live until you approve it. Every plan is test-built in a separate workspace first, AI Tracking Setup only adds clearly labelled items (“SourceXray - …” or your own label) and never edits or deletes your own tags, and every publish keeps the previous version so you can roll back in one click. It never sends personal data such as names, emails or phone numbers to GA4. Your Tag Manager and GA4 can only be connected by the SourceXray workspace that proves it owns them, so other customers can never see or change them.
Each answer from AI Tracking Setup uses one message, including explaining a live tracking check. Test builds, publishing, rollbacks and the live checker itself are free. Messages reset on the 1st of each month: Free 5, Starter 50, Pro 150 and Agency 400.
No, and no honest tool can. Since 2013 Google has removed the search term from organic clicks before the visitor reaches your website, which is why Google Analytics shows “(not provided)”.
For organic leads, SourceXray shows the channel (Organic Search), the search engine and the landing page. For Google Ads you get the exact keyword, campaign, ad group and ad, and for Microsoft Ads the exact search query the person typed. Wherever a platform passes the query, we show it. To see organic search terms in aggregate, use Google Search Console.
No. The script is a single file of about 16KB. It loads asynchronously, so it never blocks your page from rendering, and browsers cache it after the first visit. Visitor stats use one tiny background request per page, which never delays the page.
It’s built to collect as little as possible. Visitor stats are anonymous: no IP addresses are stored, the country comes from the visitor’s time zone, there’s no fingerprinting, and visit details are kept in first-party storage on your own domain. Contact details are only stored when someone sends a form.
Data retention limits apply, you can switch on a mode that doesn’t store contact details at all, and consent mode is supported so tracking can follow your cookie banner. As with any tool that handles enquiries, mention it in your privacy policy.
You don’t have to. SourceXray shows your visitors, pages, sources, conversion rates, goals and funnels by itself, in plain English, and connects every lead to the visits behind it.
If you use GA4 for your ads or reporting, keep it: AI Tracking Setup sets it up for you, and any SourceXray goal can be sent to GA4 and Google Ads in one click.
Leads are kept for your plan’s history: 30 days on Free, 12 or 24 months on paid plans. Visitor reports are kept for as long as your account is open, so you can compare any period.
Individual visits, which power the live visitor stream, are kept for 90 days (30 on Free). After that only daily totals remain, with no visitor details.
Gravity Forms, Elementor, Contact Form 7, WPForms, Ninja Forms, Fluent Forms, Formidable, Forminator, Webflow, HubSpot, Typeform, Tally, Calendly bookings and plain HTML forms.
SourceXray waits for each form builder’s real success event, so failed and invalid submissions are never counted as leads.
Not yet. SourceXray tracks form submissions and bookings today. Call tracking is on our roadmap as research, with a target of the second half of 2027.
Yes. The Agency plan covers 25 websites and 15,000 leads a month, so every client site fits in one account, and each client’s leads can go to their own inbox, Slack or CRM. Separate client workspaces, team members and branded monthly reports are on our roadmap for the first half of 2027.
No. SourceXray works on its own. If you already use Google Analytics, it runs happily alongside it, and the channel names will feel familiar because they follow GA4’s default channel grouping.
Most sites are done in about five minutes: add the script (directly or through Google Tag Manager), then send a test enquiry to see it arrive. Every lead is captured automatically. Hidden fields are only needed if you also want the source inside a form builder’s own emails or CRM.
Set up SourceXray in five minutes and see the full source story behind every enquiry.