Free check
Does every lead keep its ad click?
Keeping the ad click with every lead is best practice for Google Ads and Meta. Many sites already do it. Check yours first. If the click isn't getting through, our free script fixes it with one line.
- ✓Free
- ✓Check first
- ✓Install only if you need to
- ✓Sends nothing to us
How it should work
- 01
Someone clicks your ad
Google or Meta adds a click code to your page's address.
- 02
Your form saves it
A hidden field keeps the code with the lead's name and email.
- 03
Your CRM keeps it
So you can tell the ad platform which ads brought your best customers.
1. Check your site first
It doesn't matter what saves the click today. These checks work either way.
Quick look in your CRM
Open a recent lead that came from an ad. If it has a field like gclid, fbclid or fbc with a value filled in, your site already saves the ad click.
Send a test lead
The surest check: one test lead through your own form, all the way to your CRM. It takes a minute.
- 1Test a click from
Enter the page your ads send people to
✓The click is getting through? You're all set. There's nothing to install.
2. Not getting through? Add our free script
It runs on your site only. It saves the click in the visitor's browser and puts it in your form. It sends nothing to us and collects nothing else. Read the code.
Add one line to your site
Paste it into your site's footer, or just before </body>, so it runs on every page.
<script src="https://valuebasedbidding.com/vbb.js" async></script>Not the one who edits the site?
Send this to your web developer. It explains what to add, where, and how to check it worked.
What the script does
- ✓Saves the Google Ads click ID (gclid, gbraid or wbraid) when someone lands from your ad.
- ✓Saves Meta's click ID (fbclid) and the cookies Meta's pixel sets (_fbc and _fbp).
- ✓Adds the visitor's browser and the form's page, which Meta needs before it bids on a lead's value.
- ✓Remembers the click for 90 days, so a visitor who comes back later still counts. Safari included.
- ✓Adds it to every form as a hidden field, including HubSpot, Typeform and Marketo forms.
- ✓Only fills an empty field. It never overwrites one that already has a value.
Check it's on your site
Enter any page of your site. We'll open it and look for the script.
Make your CRM keep it
A form only saves fields it knows. Add a hidden field with each of these names to your form, for each ad platform you use. In HubSpot, create a contact property for each first.
Advertising on Meta? Two more things
In Ads Manager, add this to each ad's URL parameters, so every lead shows which campaign it came from:
meta_campaign_id={{campaign.id}}
Meta's instant forms don't pass through your site. For those, have your lead-ads tool save Meta's lead ID on the contact instead.
Questions
What is a click ID, like GCLID or fbclid?
It's a code the ad platform adds to your page's address when someone clicks your ad, like ?gclid=abc123 from Google Ads or ?fbclid= from Meta. It tells the platform exactly which click became which lead. Meta's pixel also saves two cookies, _fbc and _fbp, that do the same job.
Is saving the ad click really best practice?
Yes. Google asks you to keep the GCLID with each lead if you import offline conversions, and Meta asks for its click ID and cookies with the events you send it. Both match your leads to their ads far more reliably with them. If your forms don't save the click today, it's the first thing to fix.
Do I have to use your script?
No. If your site already saves the ad click, through your form tool, a tag manager or your developer, keep what you have. The script is here for sites that don't. It runs on your site, sends nothing to us and collects nothing else.
Why should my CRM keep the ad click?
So you can tell Google and Meta which leads became customers. They can then look for more people like them. Without the click, they have to match leads another way, and they miss many of them.
Do I need a developer?
Not usually. If you can add code to your site's footer, you can do this. Most website builders, like WordPress, Webflow and Wix, have a setting for it, often called custom code. If not, send this page to whoever looks after your site.
Will it slow my site down?
No. It's small and loads after the rest of your page, so visitors won't notice it.
Does it work with HubSpot, Typeform and other form tools?
Yes. It adds hidden fields to every form on the page, including forms that HubSpot, Typeform or Marketo add after the page loads. Your form or CRM needs a field with the same name to keep each one.
Is it free, and is it private?
It's free. It keeps the click on the visitor's own device and puts it in your form. It sends nothing to us and collects nothing else.
Want the full story of why leads lose their ad click? Read the guide.