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.
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.
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.

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 variableft_uid


_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><!-- 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.
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.
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.

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

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:
| Field | What it holds |
|---|---|
person.email | Contact email — pulled from the linked Person; used for matching + user data. |
person.phone | Contact phone — used for matching + user data. |
person.name | Contact name (also person.first_name / person.last_name). |
| Your Lead/Deal custom fields | Any custom fields on the lead, resolved to their real names (e.g. Business Size). Lead and Deal share the same field set. |
channel_id | The submitting form's name (e.g. “Demo Form”) — use it to scope a Specific Form card. |
title | The lead title Pipedrive generates for the submission. |
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:


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:


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.


Next: Pipeline tracking →
