Share this guide
Pipedrive

Pipedrive Forms

Fire a server-side event every time someone submits a Pipedrive web form — stitched to the exact pixel session so your ad platforms get full attribution.

Connect Pipedrive first
This assumes you've finished the Connect steps: pasted your API token (FunnelTrack registers the webhooks for you) and deployed the FunnelTrack pixel on your site.
Embedded forms only
FunnelTrack only supports embedded Pipedrive web forms — the form placed on your own site with Pipedrive's embed code, where the pixel and injector run. Forms opened on Pipedrive's hosted webforms.pipedrive.com URL can't be attributed.

How form attribution works

The pixel knows the session; the form carries it into Pipedrive.

When Pipedrive fires a create.lead webhook for a web-form submission, FunnelTrack needs to know which visitor session it belongs to. The FunnelTrack pixel already holds that session on the page (ft_sid) and the durable visitor id (ft_uid). You carry both into the form via two hidden fields, fed by the attribution injector — FunnelTrack reads them back off the lead and stitches it to the session.

No page URL is sent for Pipedrive events
Pipedrive's webhook doesn't include the page the form was submitted on, so FunnelTrack does not send a page URL (GA4 page_location / Meta event_source_url) for Pipedrive events. The only page we could infer is the stitched session's landing page, which is correct only when the form sits on the landing page itself — on a multi-page visit it would be wrong, so we omit it rather than report an inaccurate URL. This doesn't affect matching: attribution rides on the click IDs and the ft_sid / ft_uid session stitch, not the page URL.

1. Create the ft_sid & ft_uid fields

Two one-time custom fields that hold the session identifiers.

In Pipedrive, go to Settings → Data fields → Lead/Deal and add two Text custom fields named exactly ft_sid and ft_uid. (Lead and Deal share the same field set, so creating them once covers both.) FunnelTrack finds them by name when you connect — the names must match.

Pipedrive Data fields showing two custom Text fields named ft_sid and ft_uid
Settings → Data fields → Lead/Deal: add ft_sid and ft_uid as Text fields

2. Add them as hidden fields on your form

So each submission carries the session's ft_sid / ft_uid.

In the Pipedrive web-form builder, add two hidden fields. Set each one's Hidden field type to JavaScript variable and point it at the matching field:

  • •ft_sid → Lead field ft_sid, JavaScript variable _ft
  • •ft_uid → Lead field ft_uid, JavaScript variable ft_uid
Pipedrive hidden field editor: Lead ft_sid, type JavaScript variable, variable name _ft
ft_sid → JavaScript variable _ft
Pipedrive hidden field editor: Lead ft_uid, type JavaScript variable, variable name ft_uid
ft_uid → JavaScript variable ft_uid
The injector publishes every variant
The injector below sets _ft, ft_sid, _ft_uid, and ft_uid on window.pd_webform, so whichever variable name you pick for each hidden field will be populated.

3. Add the attribution injector

One script, placed on every page that embeds a Pipedrive web form.

Add this script to any page that embeds a Pipedrive web form. It reads the session from the pixel and publishes it to the web-form's JavaScript variables so the lead carries ft_sid and ft_uid:

<script>
(function () {
  var start = Date.now();
  function publish() {
    var ft = window.ft || window.tracker;
    if (!ft || typeof ft.getSessionId !== "function") return false;
    var sid = ft.getSessionId() || "";
    var uid = (typeof ft.getUserId === "function" && ft.getUserId()) || "";
    if (!uid) {
      var m = document.cookie.match(/(^| )_ft_uid=([^;]+)/);
      if (m) uid = decodeURIComponent(m[2]);
    }
    if (!sid && !uid) return false;
    if (!window.pd_webform || typeof window.pd_webform !== "object") window.pd_webform = {};
    window.pd_webform.ft_sid = sid;
    window.pd_webform._ft = sid;
    window.pd_webform.ft_uid = uid;
    window.pd_webform._ft_uid = uid;
    return !!(sid && uid);
  }
  if (publish()) return;
  var t = setInterval(function () {
    if (publish() || Date.now() - start > 30000) clearInterval(t);
  }, 300);
})();
</script>
Load order
The FunnelTrack pixel must load before the injector, and the injector before Pipedrive's own embed. The injector polls for up to 30 seconds, so order matters less than it used to — but this is the clean arrangement:
<!-- 1. FunnelTrack pixel (from your FunnelTrack dashboard) -->
<script src="https://cdn.funneltrack.com/ft.js" data-pixel-id="YOUR_PIXEL_ID" async></script>

<!-- 2. FunnelTrack attribution injector (the snippet above) -->
<script> /* ...the injector from above... */ </script>

<!-- 3. Pipedrive's own web-form embed code -->
<div class="pipedriveWebForms" data-pd-webforms="https://webforms.pipedrive.com/f/XXXX"></div>
<script src="https://webforms.pipedrive.com/f/loader"></script>

4. Route form submissions

One default card for everything, or scope to a specific form.

1

All Form Submissions (default)

Out of the box, FunnelTrack seeds an All Form Submissions card under the Form Submissions category. It fires on every Pipedrive web-form lead regardless of which form it came from — map it to a destination (e.g. Meta Lead) and you're live.

2

Specific Form (optional)

To track one form on its own, add a custom event and pick Specific Form from the Webhook Trigger dropdown. Enter the form's Channel ID — that's Pipedrive's name for the form (there's no numeric form id), shown as channel_id in the webhook payload. FunnelTrack scopes the card to just that form.

FunnelTrack Add Event modal: Webhook Trigger set to Specific Form, Channel ID 'Demo Form', Discovered Fields listed
Add Event → Specific Form → enter the Channel ID → Find Data

Not sure of the Channel ID? Open the submission in the Event Delivery Log and read channel_id off the webhook payload:

Inbound payload for a Pipedrive lead with channel_id 'Demo Form' highlighted
channel_id is the form's name (here, 'Demo Form')
Find Data returns the full form, not just the webhook
The webhook payload is thin. When you click Find Data, FunnelTrack calls the Pipedrive API to pull the complete lead — including the linked Person's email, phone and name, and your custom fields resolved to their real labels — so you can map everything the form collected.

Mapping custom form fields

A form field flows through only if it's a Lead or Person field.

Pipedrive has no public web-forms API, so there's no way to read a form's field list directly. Instead, every field on a Pipedrive web form maps to a real Pipedrive field, and FunnelTrack reads it from the created Lead and its linked Person via the API. So a form submission exposes these for mapping:

FieldWhat it holds
person.emailContact email — pulled from the linked Person; used for matching + user data.
person.phoneContact phone — used for matching + user data.
person.nameContact name (also person.first_name / person.last_name).
Your Lead/Deal custom fieldsAny custom fields on the lead, resolved to their real names (e.g. Business Size). Lead and Deal share the same field set.
channel_idThe submitting form's name (e.g. “Demo Form”) — use it to scope a Specific Form card.
titleThe lead title Pipedrive generates for the submission.
Organization / Deal-only fields aren't pulled
FunnelTrack reads the Lead and its linked Person, not the Organization. If you need a field in FunnelTrack, map it to the Lead (or Person) in Pipedrive. Note a web-form lead carries no deal value yet — value comes through on the Pipeline side once it's a deal.

Example — adding a “Business Size” field. Create it as a Lead/Deal custom field in Settings → Data fields, add it to the form, and it'll come through on the next submission:

Pipedrive Add lead/deal field dialog creating a Numerical field named Business Size
Create the custom field (Settings → Data fields)
Pipedrive web-form editor adding the Business Size field to the form
Add it to the web form

After a submission, the field resolves to its real name in the inbound log's API view, and becomes mappable as an event-level parameter:

FunnelTrack inbound payload API view showing resolved fields including Business Size
API view — hashes resolved to real field names
FunnelTrack Add Parameters picker showing Find-Data discovered Pipedrive fields
Map it as an event-level parameter
Custom field not showing up?
It must be a Lead (or Person) custom field — see Pipedrive's Custom fields guide. And a field only appears in Find Data once a submission has actually filled it — an optional field left blank won't show until a submission populates it.

Verify it's working

Submit a test lead and watch the log.

Submit your form once, then open the Event Delivery Log. You should see a Lead Created inbound with origin WebForms, and the mapped form events firing to your destinations.

FunnelTrack Event Delivery Log showing a Lead Created inbound and its mapped form events dispatched
Lead Created + the mapped form events, dispatched
FunnelTrack inbound payload for the Lead Created event showing origin WebForms
The Lead Created webhook — origin 'WebForms' confirms it's a web-form lead

Next: Pipeline tracking →