Skip to content
SourceLoop
Web form tracking

How to track lead source in Youform

Capture the channel, campaign, and full visitor journey behind every Youform submission, no API keys, no custom code.

On this page
  1. What SourceLoop captures from Youform
  2. Before you start
  3. Step 1: Install the SourceLoop tracking script
  4. Step 2: Add a hidden field to your Youform
  5. Step 3: Embed your form on your website
  6. Step 4: Configure the webhook
  7. Where to see Youform submissions in SourceLoop
  8. Contacts Hub
  9. Attribution dashboard
  10. Funnel reports

Youform is the minimal, design-led form builder that’s gaining traction with indie founders, designers, and small teams who want something cleaner than the legacy form tools. Like every form tool, it tells you when a submission happens, not what brought the visitor in. This guide adds that context to every Youform submission.

Four steps, roughly ten minutes start to finish.

What SourceLoop captures from Youform

Each Youform submission lands in SourceLoop with:

  • Acquisition channel plus the full UTM parameter set from the visitor’s first session
  • Browsing path ahead of the submission, every page in order
  • Total session time on your site before the form fill
  • Visit recurrence: how many distinct sessions before they converted
  • Email and name fields from the Youform submission
  • Original landing page and the referring URL
  • Source of the closing session, the one that ended in the submit
  • Device, country, and browser

Before you start

You’ll need:

  • A SourceLoop workspace (free trial)
  • Edit access to the website where the form will be embedded
  • A Youform account with at least one form built and webhook integrations available on your plan

Step 1: Install the SourceLoop tracking script

Sign in to SourceLoop, head to Setup -> Tracking code in the left sidebar, and copy the snippet shown.

SourceLoop Setup page with the tracking code snippet ready to copy

Paste the snippet inside the <head> of every page on your site. Especially the page where you’ll embed Youform.

Step 2: Add a hidden field to your Youform

Youform supports hidden fields that populate from URL parameters. Add one named sl_aid.

  1. Open your form inside Youform.
  2. Go to the form’s Settings.
  3. Navigate to the Hidden Fields & Variables tab.
  4. Add a new hidden field with the name:
sl_aid
  1. Click Save.

That’s the only hidden field required. SourceLoop matches submissions to the visitor’s marketing journey on its side using this single identifier.

Step 3: Embed your form on your website

The form needs to live on a page where the SourceLoop tracker is loaded.

  1. From your Youform Share page, make sure you’ve selected:
    • Embed Type: Inline Embed
    • Type: JS Embed
  2. Copy the embed code provided by Youform.
  3. Paste it into your website where you want the form to appear.

Step 4: Configure the webhook

The webhook delivers each Youform submission to SourceLoop, where it gets matched to the visitor’s journey and saved with full attribution.

  1. In SourceLoop, go to Setup -> Webhooks and copy your webhook URL.
  2. In Youform, open your form settings and add a webhook integration. Paste the SourceLoop URL.
  3. Save.

Submit a test response on your embedded form to confirm the submission arrives in SourceLoop with channel, source, and landing page populated.

Where to see Youform submissions in SourceLoop

Three SourceLoop views show your Youform data from different angles:

Contacts Hub

Every Youform submission is a contact row at app.sourceloop.ai/contacts. Expand any row to see the visitor’s full pre-submission timeline, where they came from, what they browsed, and how long they took before submitting.

SourceLoop Contacts Hub showing a Youform submission with the lead's full pre-submission journey

Attribution dashboard

app.sourceloop.ai/dashboards/traffic rolls up your Youform submissions by source, medium, and campaign. Useful for spotting which acquisition efforts produce real leads.

SourceLoop attribution dashboard with Youform submissions grouped by source and campaign

Funnel reports

Build a funnel in app.sourceloop.ai/funnels ending in “Youform submission”. Slice it by source, campaign, or landing page to find the paths that turn visitors into completed forms.

SourceLoop funnel report ending in a Youform submission conversion step

If paid acquisition is in your mix, push the submissions to Google Ads, Meta, and LinkedIn as offline conversions so the bidding algorithms optimize for filled forms instead of just clicks. Connect your Google Ads account walks through that setup.

Frequently asked questions

  1. Does this work on the Youform Free plan?

    The hidden-field and embed parts are available on every plan, but the webhook step requires Youform's webhook integration, which may be limited on the free tier. Check Youform's plan comparison before starting if you're not sure.

  2. Why just one hidden field instead of separate ones for UTM source, medium, campaign, etc.?

    A single `sl_aid` identifier is all SourceLoop needs to look up the visitor's tracked journey on its side. You don't have to maintain seven hidden UTM fields, the attribution data is filled in server-side using that one value.

  3. I have an older Youform setup that uses "Include Parent Page URL Parameter". Should I keep that on?

    No, you can leave it off. The current SourceLoop integration doesn't rely on the parent-URL forwarding option, so that legacy step is no longer needed.

  4. What if I share my Youform direct link instead of embedding?

    Submissions made via the standalone Youform URL won't carry attribution data, because the visitor never visits a page that has the tracker. Always route campaigns through a landing page on your site that embeds the form.

  5. Can the webhook deliver more form fields than just sl_aid?

    Yes. Youform's webhook can include the rest of the form payload. SourceLoop only requires the `sl_aid` value to attribute the lead, but additional fields like email, name, and phone are useful to carry along for downstream tools.

Track every conversion to its true source

Capture and send full attribution data from every signup, lead, booking, and sale to your CRM and ad platforms, so you know exactly what's driving revenue.

Without SourceLoop

Untagged

Kayden Floyd

kayden@abc.com

  • SourceUnknown
  • MediumUnknown
  • CampaignUnknown
  • Landing pageUnknown
Journey
No touchpoints captured

With SourceLoop

Auto-tagged

Kayden Floyd

kayden@abc.com · Acme Co.

  • Channel Paid Social
  • CampaignFree_demo
  • Landing page/pricing
Journey
Synced to HubSpot Google Ads Meta