Skip to main content
VWO → SalesforceIntegration guide

Connecting VWO to Salesforce

VWO runs tests on marketing pages specifically, which puts it directly in the paid traffic path and makes the interaction between testing and attribution unavoidable. Sending conversions into Salesforce rather than out of it is how marketing data reaches the place sales actually works. The join between them succeeds or fails on one thing: whether the Lead or Contact identity reaches the VWO variation before the conversion happens, because Salesforce can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

VWO variation on the Salesforce Lead: test for closed revenue

Read the VWO test and variation from its JavaScript API at submission and send them in a hidden field to a custom Salesforce Lead field, with click IDs captured before VWO ran. Map that field through Lead conversion to the Opportunity, check field-level security, and decide the winner on qualified rate and Opportunity value per variation.

This is the pair that shows whether a landing page test actually helped. VWO counts form submissions; Salesforce knows which became qualified, which became Opportunities and which closed. A variation that removes form fields often wins in VWO and loses in Salesforce, because more people submit and fewer of them are worth a sales call.

Read the test and variation from VWO's JavaScript API at submission and send them in a hidden field to a custom Lead field, alongside the click IDs captured in the head before VWO ran. Map that field through Lead conversion to the Opportunity, or the variation disappears exactly where revenue gets recorded. Check field-level security for the integration user and confirm the value on a real Lead in the UI.

Salesforce outcomes take weeks, so plan for the lag. Stop the test on VWO's signal if you must, but decide which variation to keep on qualified rate and Opportunity value per variation once enough leads have aged. Store values as test ID plus variation, appended or on a related record per test, so the next test doesn't overwrite the last one's history.

VWO → Salesforce · what breaks

Why this join usually fails — VWO → Salesforce

  1. 01

    The Lead or Contact identity never reaches VWO

    Synchronous test rendering can delay page load; asynchronous rendering causes flicker. Both push the identifier-capture script later in the sequence than it should be.

  2. 02

    Three tools reporting three different conversion counts

    VWO, the ad platform and the CRM will each produce a different number for the same week, because each defines a visitor, a conversion and a window differently. Reconciling them requires one source of truth, and it is not the testing tool.

  3. 03

    Writes that succeed and change nothing

    Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.

  4. 04

    Nothing reconciles afterwards

    Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.

VWO → Salesforce · the fix

What working looks like — VWO → Salesforce

  • The Lead or Contact identity on every variation

  • Conversions arriving in Salesforce

    The marketing context appears on the record and flows into the opportunity, where sales and reporting can both use it.

  • Reconciled against the source

VWO → Salesforce · architecture

How VWO and Salesforce actually connect

  1. 1

    VWO holds the truth

    VWO's own goal conversion is measured on its terms, in its window, against its visitor definition. It will not match your ad platform's figure and it is not supposed to.

  2. 2

    Salesforce needs a click to match

    Salesforce needs a resolvable record and a custom field to write to. Field-level security and validation rules can silently reject writes, which is a Salesforce-specific failure that returns success at the API level and changes nothing.

  3. 3

    The identifier is the bridge

    The Lead or Contact identity, captured at the visit and carried into the VWO variation.

  4. 4

    The event source decides reliability

    Send the downstream outcome — a qualified lead or a settled order — with the variation attached, rather than the on-page goal VWO records.

  5. 5

    Deduplication at the destination

    Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.

VWO → Salesforce · normal or broken

Working vs. broken, side by side — VWO → Salesforce

Normal, not a fault

  • The Lead or Contact identity present on the variation

  • Sent from your lead or order system

  • Deduplicated correctly

    Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.

  • Reconciles with the source

Actually broken

  • The Lead or Contact identity missing on most records

    Synchronous test rendering can delay page load; asynchronous rendering causes flicker. Both push the identifier-capture script later in the sequence than it should be.

  • Sent from the browser

    VWO, the ad platform and the CRM will each produce a different number for the same week, because each defines a visitor, a conversion and a window differently. Reconciling them requires one source of truth, and it is not the testing tool.

  • Counted twice, or not at all

    Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.

  • Nobody has reconciled it

VWO → Salesforce · diagnose

Diagnostic order — VWO → Salesforce

  1. 01

    Count variations carrying the Lead or Contact identity

  2. 02

    Follow one real conversion end to end

  3. 03

    Check the load order of the testing library against identifier capture

    If the test renders first, some share of identifiers is being lost on slower connections, and that share is not random across variations.

  4. 04

    Write a test value and open the record in the UI

    The API saying it worked and the field actually holding the value are different things in Salesforce more than anywhere else.

  5. 05

    Read the match rate, not the success message

    Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.

VWO → Salesforce · prove

How it gets proven — VWO → Salesforce

Source of truth

Your lead or order system, joined to the variation the visitor saw.

  • The Lead or Contact identity confirmed present on a live variation.
  • A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
  • Downstream outcomes reconciled per variation against imported conversions.

VWO → Salesforce · free audit

What we check in the free audit

  • Count variations carrying the Lead or Contact identity
  • Follow one real conversion end to end
  • Check the load order of the testing library against identifier capture
  • Write a test value and open the record in the UI
  • Read the match rate, not the success message

Checked against

Your lead or order system, joined to the variation the visitor saw.

Get my free conversion tracking audit

Free30 minutesNo obligation

VWO → Salesforce · when not to buy

When you don't need this — VWO → Salesforce

  • Measure identifier coverage yourself first — pull your last hundred variations and count how many carry the Lead or Contact identity.
  • Not testing paid landing pages means no interaction, and no reason to integrate the two systems.
  • If your Salesforce org is administered by a team you cannot get time with, scope their availability before starting — this build is usually blocked on admin access rather than on the work.

VWO → Salesforce · what we deliver

What gets built — VWO → Salesforce

  • Identifier capture into VWO

    Capture the identifier in the document head, before any testing library runs. This is the fix and it is a five-minute change.

  • Event source: your lead or order system

    Send the downstream outcome — a qualified lead or a settled order — with the variation attached, rather than the on-page goal VWO records.

  • Dispatch to Salesforce

    API writes to the Lead or Contact record, or a platform event, carrying the marketing context as custom field values.

  • Reversals where they exist

    Disqualified leads and refunds reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your lead or order system, joined to the variation the visitor saw.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

VWO → Salesforce questions, answered

Read the variation from VWO in the browser, write it into a hidden form field, and map it to a custom Lead field. Map that field through Lead conversion so it reaches the Opportunity.

Free · 30 min

Get VWO and Salesforce joined properly

Free30 minutesNo obligation