You will learn
Learn how to integrate Salesforce CRM with Klaviyo. This integration makes it easy to connect your Salesforce account, choose which objects to sync, and map fields—all through a guided, in-app setup flow.
With this integration, Klaviyo can automatically sync Salesforce data (such as Leads or Contacts) into Klaviyo profiles, allowing you to personalize messaging and segment customers using CRM data.
Before you begin
Before you start integrating, make sure that:
- You have admin access to your Salesforce account
- Your Salesforce edition supports API access
- You have your Salesforce username, password, and security token available
Obtain Salesforce security token
To enable the Salesforce CRM integration in Klaviyo, you first need to obtain your Salesforce security token.
You should have received your security token upon initial setup of your Salesforce account. If you’re part of a larger organization using Salesforce, reach out to your Salesforce administrator to obtain the security token.
If you have no record of a security token, you will need to reset your security token to receive a new one. The steps for resetting your security token are broken down below by Salesforce version, depending on whether you’re using the Lightning Experience or Salesforce Classic.
Lightning Experience token reset
- In Salesforce, click on your profile in the top right corner of your screen and select Settings.
- This will take you to your personal information page. From the left-hand menu, click Reset My Security Token.
- Click Reset Security Token.
- If your security token was used to connect to any other apps, update those integrations with this new security token.
- You will then receive an email from Salesforce with your new security token. Make note of the security token and keep that information secure.
Salesforce Classic token reset
- In Salesforce, click on your name at the top right of your screen and select My Settings.
- From the My Settings menu, click Personal. Then, select Reset My Security Token.
- Click Reset Security Token.
- If your security token was used to connect to any other apps, update those integrations with this new security token.
- You will then receive an email from Salesforce with your new security token. Make note of the security token and keep that information secure.
Connect Salesforce to Klaviyo
- In Klaviyo, select the Integrations tab.
- Click Explore apps, search for Salesforce, and click the card. Then, click Install.
- Enter your Salesforce username, password, and security token. Once you've entered these required details, click Connect to Salesforce.
- If the integration is successful, you should receive a success message.
Choose a Salesforce Object to sync
After connecting, you’ll be prompted to select which Salesforce object you want to sync into Klaviyo. Click Next to continue.
Available options include:
- Lead - Potential customers who have shown interest
- Contact - Individuals associated with accounts in Salesforce
- Other - Additional support objects (availability depends on your Salesforce setup)
Objects synced from Salesforce will be created or updated as Klaviyo profile.
Map Salesforce fields to Klaviyo properties
Next, you’ll map Salesforce fields to Klaviyo profile properties. Note that some core mappings such as email, phone number, first name, and last name are pre-mapped. Mapping of the Salesforce email address is required.
Add or edit mappings
- Use Add mapping to map additional Salesforce fields.
- Select a Salesforce field on the left and the corresponding Klaviyo property on the right
- Remove mappings using the trash icon if needed
Import mappings via CSV (optional)
CSV imports replace all existing field mappings for the selected object. If a field is not included in the file, it will be removed from your configuration. To avoid interruptions to syncing, confirm your CSV includes all required fields (such as Email) and any additional fields you want to continue syncing.
You can import your mappings via a CSV if you have many fields to map.
- Click Add mapping → Import mappings
- Download the CSV template
- Add your Salesforce → Klaviyo field mapping to the CSV template
- Upload the completed CSV to apply mappings in bulk
Unsubscribe handling (optional)
You can enable the option to sync the Salesforce object as unsubscribed when Email Opt Out is set to true on the Salesforce object. This will mark the profile as unsubscribed from email in Klaviyo.
Complete setup
Once your mappings are complete, click Complete setup. Klaviyo will finalize the integration (this usually takes a few seconds). You’ll see a confirmation message once your Salesforce account is successfully connected and syncing.
Monitor Salesforce sync and verify data
The Salesforce integration syncs to Klaviyo every hour.
To check your integration:
- Click the Analytics dropdown in Klaviyo and select Metrics. Filter by Salesforce, then find the metric Became Lead and click on its Activity feed icon.
- If your integration has started syncing data, you will see Became Lead events, with the Salesforce icon, added to this activity feed.
- Klaviyo imports all of your Salesforce leads. To verify this, compare the number of leads being added to Klaviyo on a particular day with the number of leads being added to Salesforce and confirm they match.
- Hover over yesterday's datapoint (on the activity feed for Became Lead, which you can find by clicking on the metric) or look in the table of data below the chart to see how many payments occurred yesterday and compare it to the data stored in Salesforce.
- If the data doesn’t match, the issue is most likely that the timezone in your Klaviyo account doesn't match the timezone in your Salesforce account. To check your timezone setting in Klaviyo:
- Click your account name in the lower left.
- Select then clicking Settings > Organization.
- Scroll down to Time zone.
Salesforce metrics in Klaviyo
Currently, Klaviyo syncs one metric with Salesforce CRM: Became Lead.
This metric is tracked when a new lead is created in Salesforce. The event itself does not include any data from Salesforce, but when this event is logged, Klaviyo will sync the following custom properties for each lead and attach them to the lead’s Klaviyo profile:
- Id
- FirstName
- LastName
- Title
- Company
- Street
- City
- State
- PostalCode
- Country
- Latitude
- Longitude
- Phone
- Website
- LeadSource
- Status
- Industry
- NumberOfEmployees
- HasOptedOutOfEmail
- Owner Email
You can then use these properties in segments, in flows, and to dynamically populate customer properties into your message templates.
Troubleshooting
Field mapping warnings and errors
Klaviyo continuously validates your Salesforce field mappings to ensure data can sync reliably. If a mapped Salesforce field becomes unavailable (for example, if it’s deleted, renamed, or permissions change), you may see a warning or error in your integration settings.
When a non-required field is unavailable
If a mapped Salesforce field is no longer available and it is not required, Klaviyo will:
- Display a warning indicating which field is missing
- Continue syncing all other available fields
- Exclude the unavailable field from future syncs until it is updated or removed
To resolve this,
- Navigate to your Salesforce integration in Klaviyo.
- Open the affected object
- Update or remove the invalid field mapping
- Save your changes
Once updated, syncing will continue as expected.
When a required field (Email) is unavailable
If the Salesforce Email field is no longer available for an object (for example, due to schema changes or permissions), Klaviyo will:
- Display an error indicating the Email field is missing
- Stop syncing data for the affected object
- Prompt you to update your field mappings to restore syncing
To resolve this,
- Navigate to your Salesforce integration in Klaviyo.
- Open the affected object
- Ensure a valid Salesforce Email field is mapped to Klaviyo’s Email property
- Save your changes
Once the Email field is successfully mapped again, data syncing will automatically resume.
Outcome
You have now integrated your Klaviyo account with Salesforce CRM and reviewed your synced data.