GuidesMeasure Lead Generation

Measure Lead Generation

Measure successful forms, applications, and demo requests with events, attribution, and funnels.

Use Hardal to understand which campaigns generate leads and where visitors stop before submitting a form. The same approach works for demo requests, applications, and contact forms.

Before you start

You need a confirmed form-submission response, a loaded web tracker or a backend sender, and access to Events, Acquisition, and Funnels.

Choose the successful outcome

Send generate_lead after your application confirms a successful submission. A click on Submit is not enough: validation or a server error may prevent completion.

Use the Standard Events lead schema for the fields you need. Keep personal information out of URLs and free-text event parameters. Supply permitted identity through the documented identity fields and consent flow.

If the outcome is confirmed on your server, use API & Server-side Setup. For a browser-confirmed outcome, use the web tracker after it has loaded:

hrd.track("generate_lead", {
  lead_id: lead.id,
  form_name: "demo_request",
  product: "analytics"
});

Replace lead.id with the unique ID returned by your application for the confirmed submission. form_name and product are custom context parameters in this example. They do not create separate reports or automatically appear as reporting dimensions.

Verify the event

Submit one test form. In Engagement → Events, find generate_lead and open the event detail. Check the source, time, parameters, and session. Inspect the related session to confirm the surrounding page activity.

Analyze acquisition

Ask an owner or admin to open Manage → Setup → Tenants → Edit and choose generate_lead under Conversion Events in Attribution. Review the attribution model, lookback window, traffic scope, date range, and source.

Compare channels or campaigns in Traffic Distribution. Interpret conversion counts using the selected configuration; they are not necessarily the count of all received form events.

See How Attribution Works.

Build a submission funnel

Create the form journey

Open Funnels → Add funnel and name the journey for the form you are measuring.

Define ordered steps

For a demo request, add Path /pricing, Path /request-demo, and Event generate_lead. Use the actual paths and event name from your implementation.

Review and save

Check Funnel preview and click Create funnel. Inspect a test submission in the saved definition, then use the breakdowns to compare how many visits reach each step. Successful submissions that skipped an earlier step are outside this sequence.

Define engagement separately

Add generate_lead to Key Events if you want sessions containing it to count as engaged. Acquisition conversion events and engagement selection are separate settings.

A submitted lead does not by itself mean a qualified lead or a completed sale. Send later business outcomes explicitly when you need to measure them; collection alone does not automatically join your CRM lifecycle to the visit.

Check the result

You should have an inspected generate_lead event, an Acquisition conversion selection, and a saved funnel for the intended form journey. Verify these separately: selecting a Key Event does not configure campaign conversions.