Connecting Optimizely to Salesforce Marketing Cloud
Optimizely deliberately shows different people different experiences, which means every conversion figure your ad platform reports is an average across variants it knows nothing about. Marketing Cloud is a different product from Salesforce CRM with a different identity model, which catches out almost everyone who assumes a contact in one is a contact in the other. The join between them succeeds or fails on one thing: whether the Subscriber Key reaches the Optimizely variant assignment before the conversion happens, because Marketing Cloud can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Carrying the Optimizely offer variant into Marketing Cloud journeys
When an Optimizely variant changes an offer, write the experiment and variation into the Marketing Cloud data extension the welcome journey listens to, on the signup insert keyed on your Subscriber Key. Branch decision splits on it so people get the terms they saw, use one field per experiment, and report journey conversions per variant.
This pair matters when the variant changes a promise. If variation B of a landing page offered a different discount, trial length or bundle, the welcome journey in Marketing Cloud has to know which version the person saw, or it emails control-group terms to someone who signed up under B. That is a customer-facing error, not a reporting one.
So write experiment and variation into the data extension the journey listens to, on the same record insert that carries the signup, keyed on the Subscriber Key you actually use. Then let decision splits branch on it, which is the one legitimate case for a journey reading a test variant. Use a field per experiment, because a person who later lands in another test should not have their offer overwritten.
For measurement, keep it simple: report journey conversions per variant from that data extension, not from Optimizely, because Optimizely only counts conversions it sees on the site within the test window. And check how Marketing Cloud's own email split tests interact; a person in Optimizely variant B and an email split A is in four cells, and nobody sized the test for that.
Optimizely → Marketing Cloud · what breaks
Why this join usually fails — Optimizely → Marketing Cloud
- 01
The Subscriber Key never reaches Optimizely
Client-side experiments can flicker and can delay rendering, which loses landing-page identifier capture on slow connections — a bias that falls unevenly across variants.
- 02
An experiment silently confounding every campaign result
A test that moves conversion rate by fifteen percent will move every campaign's measured performance by some fraction of that, and the media team will attribute it to bidding, creative or seasonality. Anything but the test.
- 03
Two identity models treated as one
Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.
- 04
Nothing reconciles afterwards
Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.
Optimizely → Marketing Cloud · the fix
What working looks like — Optimizely → Marketing Cloud
The Subscriber Key on every assignment
Conversions arriving in Marketing Cloud
The record lands in the data extension, the journey's entry criteria evaluate on its schedule, and sends follow.
Reconciled against the source
Optimizely → Marketing Cloud · architecture
How Optimizely and Marketing Cloud actually connect
- 1
Optimizely holds the truth
The variant is the missing dimension. Without it, a campaign's performance is confounded by an experiment nobody told the media team about, and both teams will draw confident, wrong conclusions.
- 2
Salesforce Marketing Cloud needs a click to match
The Subscriber Key, the data extension the journey listens to, and the fields its decision splits reference. An event landing in the wrong data extension will be stored correctly and trigger nothing.
- 3
The identifier is the bridge
The Subscriber Key, captured at the visit and carried into the Optimizely variant assignment.
- 4
The event source decides reliability
Send purchases with the variant as a custom dimension, so campaign performance can be read per variant rather than blended.
- 5
Deduplication at the destination
Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.
Optimizely → Marketing Cloud · normal or broken
Working vs. broken, side by side — Optimizely → Marketing Cloud
Normal, not a fault
The Subscriber Key present on the assignment
Sent from your order system with variant attached
Deduplicated correctly
Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.
Reconciles with the source
Actually broken
The Subscriber Key missing on most records
Client-side experiments can flicker and can delay rendering, which loses landing-page identifier capture on slow connections — a bias that falls unevenly across variants.
Sent from the browser
A test that moves conversion rate by fifteen percent will move every campaign's measured performance by some fraction of that, and the media team will attribute it to bidding, creative or seasonality. Anything but the test.
Counted twice, or not at all
Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.
Nobody has reconciled it
Optimizely → Marketing Cloud · diagnose
Diagnostic order — Optimizely → Marketing Cloud
- 01
Count assignments carrying the Subscriber Key
- 02
Follow one real conversion end to end
- 03
Check for running experiments before diagnosing a performance change
First question, not last. It costs one minute and explains a surprising share of unexplained movements.
- 04
Confirm what Subscriber Key is actually set to in this org
Before sending anything. It is a configuration decision made once, often years ago, and every integration built afterwards inherits it.
- 05
Read the match rate, not the success message
Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.
Optimizely → Marketing Cloud · prove
How it gets proven — Optimizely → Marketing Cloud
Source of truth
Your order system, joined to the variant each customer was assigned.
- The Subscriber Key confirmed present on a live assignment.
- Records confirmed on single subscriber records in the correct data extension, with the triggered journey verified in a non-production business unit first.
- Orders reconciled per variant against imported conversions over the full experiment window.
Optimizely → Marketing Cloud · free audit
What we check in the free audit
- Count assignments carrying the Subscriber Key
- Follow one real conversion end to end
- Check for running experiments before diagnosing a performance change
- Confirm what Subscriber Key is actually set to in this org
- Read the match rate, not the success message
Checked against
Your order system, joined to the variant each customer was assigned.
Free30 minutesNo obligation
Optimizely → Marketing Cloud · when not to buy
When you don't need this — Optimizely → Marketing Cloud
- Measure identifier coverage yourself first — pull your last hundred assignments and count how many carry the Subscriber Key.
- If you are not running experiments on pages in the paid funnel, there is no confound and nothing to integrate.
- If you are on Salesforce CRM but sending email through a simpler platform, adding Marketing Cloud brings an identity model to reconcile that you currently do not have to think about.
Optimizely → Marketing Cloud · what we deliver
What gets built — Optimizely → Marketing Cloud
Identifier capture into Optimizely
Capture the identifier before the experiment framework initializes, and pass the variant assignment as a dimension alongside it.
Event source: your order system with variant attached
Send purchases with the variant as a custom dimension, so campaign performance can be read per variant rather than blended.
Dispatch to Marketing Cloud
A server-side insert into the data extension the journey is configured against, keyed on Subscriber Key.
Reversals where they exist
Refunds reverse and should retain the variant dimension.
Written guarantee
95%+ tracking accuracy
Measured against Your order system, joined to the variant each customer was assigned.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Optimizely → Marketing Cloud questions, answered
Insert it as fields on the signup record in the data extension your journey uses, keyed on Subscriber Key, and populated from the Optimizely decision at form submission.
Only when the variant changed an offer or terms the follow-up emails must honor. Otherwise keep it as a reporting field.
Almost always because the Subscriber Key never reached the Optimizely variant assignment. Client-side experiments can flicker and can delay rendering, which loses landing-page identifier capture on slow connections — a bias that falls unevenly across variants. Measure coverage before debugging the dispatch.
Marketing Cloud identifies people by Subscriber Key, which you define. It is not the CRM Contact ID unless somebody deliberately made it so, and in many orgs the two are unrelated. Sending an event keyed on the wrong one creates a second subscriber rather than updating the first, which splits the person across two journeys.
Your order system with variant attached. Send purchases with the variant as a custom dimension, so campaign performance can be read per variant rather than blended.
Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.
More on Optimizely → Marketing Cloud
- Stripe → Marketing CloudConnecting Stripe to Salesforce Marketing Cloud
- PayPal → Marketing CloudConnecting PayPal to Salesforce Marketing Cloud
- Shopify → Marketing CloudConnecting Shopify to Salesforce Marketing Cloud
RELATED GUIDES
Where Optimizely → Marketing Cloud fits in the rest of your tracking
- Dynamic Yield → Marketing CloudConnecting Dynamic Yield to Salesforce Marketing Cloud
- VWO → Marketing CloudConnecting VWO to Salesforce Marketing Cloud
- RudderStack → Marketing CloudConnecting RudderStack to Salesforce Marketing Cloud
- Optimizely → BrazeConnecting Optimizely to Braze
- Optimizely → AttentiveConnecting Optimizely to Attentive
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
- mParticle → Marketing CloudConnecting mParticle to Salesforce Marketing Cloud
- Tealium → Marketing CloudConnecting Tealium to Salesforce Marketing Cloud
Free · 30 min
Get Optimizely and Marketing Cloud joined properly
Free30 minutesNo obligation
