Integrating CallTrackingMetrics with Salesforce
CallTrackingMetrics can integrate directly with your Salesforce account so that calls coming through your tracking phone numbers appear automatically as leads, activities, or as a custom object in Salesforce. This is a powerful way to ensure that all of your advertising and agent performance data feeds right into your Org so that your team can see which campaigns are driving calls and resulting in sales, giving you full visibility and actionable data to maximize your ROI.
This guide includes the following:
- Integration Requirements
- Integration Setup
- V2 Salesforce Phone (Lightning)
- V2 Salesforce Phone (Classic)
- Using Salesforce Triggers
Here are some of the most popular ways to use the Salesforce integration:
- Append Salesforce campaigns to leads using CTM tracking sources
- Create new leads, contacts, or custom object records from CTM phone calls and FormReactors
- Associate CTM agents with Salesforce users to track activity
- Create a call center: click to call from a record and disposition phone calls via the CTI softphone
- Import past call data
Integration Requirements
CallTrackingMetrics:
- You must be on the Sales Engage, Enterprise, or Connect plan
- User role must be Administrator or Agency Administrator
Salesforce Requirements:
- You must be on the Enterprise plan or the Unlimited plan (non-profit plans are supported)
- You must have top-level Salesforce administrator privileges and read/write/edit permissions on all objects and fields being mapped.
Integration Setup
We’ve found that no two companies leverage Salesforce exactly the same way due to the robust nature of the platform, and the way that we integrate CTM data with your Salesforce account is highly customizable. CTM’s passing of data to your Org can accomplish a lot of different objectives. The two most common objectives for linking CTM to a salesforce account usually involve either:
- Attributing marketing data to a record for funnel reporting, or
- Attributing an activity to an agent for performance reporting
To connect your CallTrackingMetrics and Salesforce accounts:
Note: You can link multiple CTM accounts to one Salesforce account. Salesforce has a limit of 5 connections.
- Navigate to Settings → Integrations → Salesforce.
- Review the required permissions and select to link to either your sandbox or your production account in Salesforce.
- Once your account is linked, the page will refresh with options you can configure for how and when call data will sync to Salesforce.
V2 Salesforce Phone (Lightning)
Our latest Salesforce phone integration enhances the agent experience by offering single sign-on capabilities right out of the box. This eliminates the need for separate logins to CallTrackingMetrics, creating a smoother workflow. It also bypasses the challenge of third-party cookies being blocked by browsers. Furthermore, leveraging cutting-edge WebRTC technology ensures a more reliable and robust phone experience. This integration is available on Sales Engage, Enterprise, and Connect plans.
Note: By following the below instructions, you will install the new softphone V2 unless you download the adapter in the Legacy Adapter section, which will be softphone V1.
Installation
- Scroll to the OpenCTI section of the Salesforce integration page within CallTrackingMetrics.
- Click the
Install Lightning Adapter button.
- Check if you would like your agents automatically assigned to the call center. If not assigning agents automatically, skip to this section to set up manually.
- Check if you would like the phone inline within Salesforce.
- Note: By default, the softphone has a pop-out window to carry the audio during a phone call. You can optionally load this inline within the lightning interface. Beware, if your agent reloads the Salesforce page, the phone call will drop.
- In Salesforce, go to the App Manager and install the Open CTI Phone to the utility bar on the app you are using.
- Click the App Manager link.
- Next to your App, click
, and then click Edit.
- In App Settings, go to Utility Items (Desktop Only).
- Click Add Utility Item.
- In the search bar, enter Open CTI Softphone, and then click Open CTI Softphone.
- Save your changes.
- Go to User Profiles, and make sure the contact center user’s profile is in the Selected column.
- Save your changes.
Note: Salesforce users who are connected to the Open CTI will automatically be created in CTM as Call Agents.
If you see this error, it's because the Softphone Layout created at some point needs to be adjusted:
If you see this error, you are likely logged into CTM as a different user than your Salesforce user:
Setting up the Call Center in Salesforce (these steps only need to be followed if not linking agents automatically)
IN CALLTRACKINGMETRICS
To get started, you will need to download the CallTrackingMetrics Open CTI Adapter.
- Navigate to Settings → Integrations → Salesforce, then click or scroll down to the OpenCTI section.
- Click the Open CTI Adapter link to download the adapter xml file.
IN SALESFORCE
- Navigate to the Setup page in your Organization.
- Locate the Quick Find search box in the left-hand navigation, search for and select Call Centers.
- On the Call Centers page, click Import and Choose File, then select the CTM Open CTI Adapter file you downloaded from the Salesforce integration page in CTM.
- Click Import.
- Once you have imported the file, your page will refresh and on the second half of the page, you will see a new section titled Call Center Users. Navigate to this section and click Manage Call Center Users to add users to your call center.
- Note: If your users are already added to another call center, please remove them before you add them to the CTM Call Center.
- Note: If your users are already added to another call center, please remove them before you add them to the CTM Call Center.
Screen Pop (Optional)
- In Salesforce Setup> Quick find, locate Call Center and click Softphone Layouts.
- Click Edit to the left of the Standard Softphone Layout.
- Scroll to Screen Pop Settings.
- Configure each according to how you want your screen to pop by clicking Edit to the right of each option, then click Save at the top of the page when complete.
Using the Phone (Standard Mode)
- Go to the Salesforce app where you will be taking calls.
- In the bottom left corner of the Utility bar, click the Phone button.
- When the Phone appears, click the Launch Phone button.
- Once the secondary device window states; Your device is registered, minimize this window (do not close).
- Set your status to available, then begin making and receiving calls.
Using the Phone (Inline Mode)
- Go to the App you use, in Salesforce, where you will be taking calls.
- In the bottom left corner of the Utility bar, click the Phone button.
- Set your status to available, then begin making and receiving calls.
V2 Salesforce Phone (Classic)
Our latest Salesforce phone integration enhances the agent experience by offering single sign-on capabilities right out of the box. This eliminates the need for separate logins to CallTrackingMetrics, creating a smoother workflow. It also bypasses the challenge of third-party cookies being blocked by browsers. Furthermore, leveraging cutting-edge WebRTC technology ensures a more reliable and robust phone experience. This integration is available on Sales Engage, Enterprise, and Connect plans.
Note: By following the below instructions, you will install the new softphone V2 unless you download the adapter in the Legacy Adapter section, which will be softphone V1.
Installation
- Scroll to the Open CTI section of the Salesforce integration page within CallTrackingMetrics.
- Click the Install Classic Adapter button.
- Under Installation Options, check the box if you would like your agents automatically assigned to the call center.
- Click Install.
- Once installation is complete, click the Get Started in Salesforce button.
Screen Pop (Optional)
- In Salesforce, go to Setup> Quick Find locate Call Center and click Softphone Layouts.
- Click Edit to the left of the Standard Softphone Layout.
- Scroll to Screen Pop Settings.
- Configure each according to how you want your screen to pop by clicking Edit to the right of each option, then click Save at the top of the page when complete.
Using the Phone
- There will be a new button in the left corner of your Salesforce screen,
.
- Click the Launch Phone button.
- Once the secondary device window states; Your device is registered, minimize this window (do not close).
- Set your status to available, then begin making and receiving calls.
Using Salesforce Triggers
Creating a Record Sync Trigger
This section will cover the basic record sync trigger setup for your Salesforce integration. To learn more about triggers and all of the options that can be used, see the full article here.
When you have finished creating the trigger, you can use Test Mapping to test the trigger you have created against one of the activities in your CTM account.
- Navigate to Flows → Triggers. If you do not already have a trigger in your account, you will be redirected to a setup page. Otherwise, click New Trigger in the upper right.
- Enter a name and optional description for the trigger.
- Use the drop-down menu to select when this trigger should run. For Salesforce, we recommend running the trigger at the end of the call to ensure all data is collected before it is sent to Salesforce.
- Use the toggle to enable this trigger for all activities in your account, or choose to select specific tracking numbers to use with this trigger.
- Click Save Changes.
- Click + Add Workflow.
- Use the “If all the following rules match” section to set rules for your trigger, such as first-time callers only, or calls over a specific duration.
- Click Add Action and select Salesforce Record Sync.
- If you are using the legacy Salesforce integration (the “Enable Legacy Salesforce Integration” toggle is on in your Salesforce settings), the trigger will sync using the rules defined in your Salesforce settings.
- Using this version will complete the trigger setup. Next, select Save Changes.
- For the updated version of the Salesforce integration, check the Custom mapping box to configure your record sync.
- Use the drop-down menu to select how you want the information to be sent to Salesforce:
- Update only will update an existing record. New records will not be created.
- Insert only will only create a new record. No existing records will be updated.
- Update or insert (upsert) will either create a new record or update an existing record.
- Use the Salesforce Object Mapping drop-down menu to select the type of object you would like to sync data to in Salesforce.
- Advanced users may wish to configure an Advanced Custom SOSL Query instead. For more information, see “Creating an Advanced Custom SOSL Query” below.
- If you wish to associate the Salesforce object you selected to the call or text in your CTM account, check “Associate to Call, Text, Form, etc…”
- If you wish to set an owner for the record (based on your Salesforce integration settings), check “Set record owner.”
- Select Add Field Mapping to begin creating your custom mappings.
- In the row that is added, select the following details:
- The CTM field with data you wish to send to Salesforce
- The Salesforce field where the data should appear
- The default value to use if a value is not available (optional)
- Click the edit button next to this field to see shortcut tokens that can be used here
- Whether the record sync should always or never overwrite the selected Salesforce field
- Click Add Field Mapping to continue adding fields as needed.
-
Save Changes. Once your CTM account has been linked to Salesforce, you can use triggers to customize record syncing and campaign associations between your accounts. Using triggers with your Salesforce integration will allow you to:
- Set specific conditions for when data should be sent to Salesforce
- Select which object types should be updated
- Create custom field mappings to determine where data will be inserted or updated in your Salesforce account
- Automatically execute other actions, such as applying tags or sending notifications, alongside the record sync
Creating a Salesforce Campaign Trigger
This section will cover the basic campaign link trigger setup for your Salesforce integration. To learn more about triggers and all of the options that can be used, see the full article here.
-
- Navigate to Flows → Triggers. If you do not already have a trigger in your account, you will be redirected to a setup page, otherwise, click New Trigger in the upper right.
- Enter a name and optional description for the trigger.
- Use the drop-down menu to select when this trigger should run. For Salesforce, we recommend running the trigger at the end of the call to ensure all data is collected before it is sent to Salesforce.
- Use the toggle to enable this trigger for all activities in your account, or choose to select specific tracking numbers to use with this trigger.
- Save Changes.
- Select + Add Workflow.
- Use the “If all the following rules match” section to set rules for your trigger, such as first-time callers only, or calls over a specific duration.
- Click Add Action and select Salesforce Campaign.
- By default, the Salesforce campaign selected will be based on the Tracking Source associated with the activity. To use a specific campaign instead, check the box labeled “Link to specific Campaign.”
- Use the drop-down menu to select the campaign to link to the activity.
- Save Changes.
- For the updated version of the Salesforce integration, check the Custom mapping box to configure your record sync.
- Use the drop-down menu to select how you want the information to be sent to Salesforce:
- Update only will update an existing record. New records will not be created.
- Insert only will only create a new record. No existing records will be updated.
- Update or insert (upsert) will either create a new record or update an existing record.
- Use the Salesforce Object Mapping drop-down menu to select the type of object you would like to sync data to in Salesforce.
- Advanced users may wish to configure an Advanced Custom SOSL Query instead. For more information, see “Creating an Advanced Custom SOSL Query” below.
- If you wish to associate the Salesforce object you selected to the call or text in your CTM account, check “Associate to Call, Text, Form, etc…”
- If you wish to set an owner for the record (based on your Salesforce integration settings), check “Set record owner.”
- Select Add Field Mapping to begin creating your custom mappings.
- In the row that is added, select the following details:
- The CTM field with data you wish to send to Salesforce
- The Salesforce field where the data should appear
- The default value to use if a value is not available (optional)
- Click the edit button next to this field to see shortcut tokens that can be used here
- Whether the record sync should always or never overwrite the selected Salesforce field
- Click Add Field Mapping to continue adding fields as needed.
-
Save Changes. Once your CTM account has been linked to Salesforce, you can use triggers to customize record syncing and campaign associations between your accounts. Using triggers with your Salesforce integration will allow you to:
- Set specific conditions for when data should be sent to Salesforce
- Select which object types should be updated
- Create custom field mappings to determine where data will be inserted or updated in your Salesforce account
- Automatically execute other actions, such as applying tags or sending notifications, alongside the record sync
Creating an Advanced Custom SOSL Query
This setting is available when configuring a Salesforce record sync. Configuring your own query allows you to specify your own rules for matching records between CTM and Salesforce.
Note: this setting requires advanced knowledge of SOSL query language. Do not use this feature unless you are familiar with its usage.
-
- While configuring a Salesforce record sync (see instructions above), click the pencil icon next to the Salesforce Object Mapping field to open the Advanced Custom SOSL Query window.
- Click Add Query and enter your custom query. You can provide up to 3 queries. For example:
- FIND {555*555*5555 OR 1*555*555*5555 OR 555.*555.*5555} IN PHONE FIELDS RETURNING Account LIMIT 1
- FIND {who@example.com} IN EMAIL FIELDS RETURNING Account LIMIT 1
- Select Add Query to add up to three total queries.
- Use the drop-down to select a call from your account and click Test Query to confirm whether your query will work as intended.
- Click Stage.
- While configuring a Salesforce record sync (see instructions above), click the pencil icon next to the Salesforce Object Mapping field to open the Advanced Custom SOSL Query window.
Comments
Article is closed for comments.