Skip to main content

Salesforce Marketing Cloud

Radar can send events to Salesforce Marketing Cloud to trigger journeys in Journey Builder.

Use the Salesforce Marketing Cloud integration to send location-triggered messages to increase engagement and conversion.

The Salesforce Marketing Cloud integration is available on the Enterprise plan.

Configuration#

On the Salesforce Marketing Cloud Installed Packages page, click New. Add an installed package with the name Radar. On the package details page, add an API Integration component with the Server-to-Server integration type and all permissions for the Automation, Contacts, Cross Cloud Platform, and Data scopes. Copy your Client ID, Client Secret, Authentication Base URI, and REST Base URI.

Then, on the Radar Integrations page under Salesforce Marketing Cloud, set Enabled to Yes and paste these values. When you click Save, Radar will create an event definition and data extension with the specified event definition key (radar-event by default).

Finally, in the Salesforce Marketing Cloud Journey Builder, create a new journey with an API Event entry source using this event definition and data extension.

By default, Radar userId maps to Salesforce Marketing Cloud contactKey for logged in users. However, you can track logged out users or specify custom mappings by setting Radar metadata.salesforceContactKey. For example, on iOS:

Radar.setMetadata(["salesforceContactKey": contactKey])

Whenever events are generated, Radar will send events to your Salesforce Marketing Cloud data extension to trigger journeys.

Event mapping#

user.entered_geofence#

Radar Event FieldSalesforce Event AttributeTypeExample
typetypestring"user.entered_geofence"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
geofence._idgeofenceIdstring"5b2c0906f5874b001aecfd8e"
geofence.descriptiongeofenceDescriptionstring"Store #123"
geofence.taggeofenceTagstring"store"
geofence.externalIdgeofenceExternalIdstring"123"
geofence.metadata[{key}]geofenceMetadata{key}{type}{value}
confidenceconfidencestring"high"

If Regions is enabled, Radar will also send the following attributes:

Radar Event FieldSalesforce Event AttributeTypeExample
country.codecountryCodestring"US"
country.namecountryNamestring"United States"
state.codestateCodestring"MD"
state.namestateNamestring"Maryland"
dma.codedmaCodestring"26"
dma.namedmaNamestring"Baltimore"
postalCode.codepostalCodestring"21014"

user.exited_geofence#

Radar Event FieldSalesforce Event AttributeTypeExample
typetypestring"user.exited_geofence"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
geofence._idgeofenceIdstring"5b2c0906f5874b001aecfd8e"
geofence.descriptiongeofenceDescriptionstring"Store #123"
geofence.taggeofenceTagstring"store"
geofence.externalIdgeofenceExternalIdstring"123"
geofence.metadata[{key}]geofenceMetadata{key}{type}{value}
confidenceconfidencestring"high"
durationdurationnumber (minutes)42.1

If Regions is enabled, Radar will also send the following attributes:

Radar Event FieldSalesforce Event AttributeTypeExample
country.codecountryCodestring"US"
country.namecountryNamestring"United States"
state.codestateCodestring"MD"
state.namestateNamestring"Maryland"
dma.codedmaCodestring"26"
dma.namedmaNamestring"Baltimore"
postalCode.codepostalCodestring"21014"

user.entered_place#

Radar Event FieldSalesforce Event AttributeTypeExample
typetypestring"user.entered_place"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
place._idplaceIdstring"59302bcf8f27e8a156bd4f91"
place.nameplaceNamestring"Starbucks"
place.chain.slugplaceChainSlugstring"starbucks"
place.chain.nameplaceChainNamestring"Starbucks"
place.categoriesplaceCategoriesstring (comma-separated)"food-beverage,cafe,coffee-shop"
confidenceconfidencestring"high"

If Regions is enabled, Radar will also send the following attributes:

Radar Event FieldSalesforce Event AttributeTypeExample
country.codecountryCodestring"US"
country.namecountryNamestring"United States"
state.codestateCodestring"MD"
state.namestateNamestring"Maryland"
dma.codedmaCodestring"26"
dma.namedmaNamestring"Baltimore"
postalCode.codepostalCodestring"21014"

user.exited_place#

Radar Event FieldSalesforce Event AttributeTypeExample
typetypestring"user.exited_place"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
place._idplaceIdstring"59302bcf8f27e8a156bd4f91"
place.nameplaceNamestring"Starbucks"
place.chain.slugplaceChainSlugstring"starbucks"
place.chain.nameplaceChainNamestring"Starbucks"
place.categoriesplaceCategoriesstring (comma-separated)"food-beverage,cafe,coffee-shop"
confidenceconfidencestring"high"
durationdurationnumber (minutes)42.1

If Regions is enabled, Radar will also send the following attributes:

Radar Event FieldSalesforce Event AttributeTypeExample
country.codecountryCodestring"US"
country.namecountryNamestring"United States"
state.codestateCodestring"MD"
state.namestateNamestring"Maryland"
dma.codedmaCodestring"26"
dma.namedmaNamestring"Baltimore"
postalCode.codepostalCodestring"21014"

user.entered_home#

Radar Event FieldSalesforce Event AttributeTypeExample
typetypestring"user.entered_home"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
confidenceconfidencestring"high"

If Regions is enabled, Radar will also send the following attributes:

Radar Event FieldSalesforce Event AttributeTypeExample
country.codecountryCodestring"US"
country.namecountryNamestring"United States"
state.codestateCodestring"MD"
state.namestateNamestring"Maryland"
dma.codedmaCodestring"26"
dma.namedmaNamestring"Baltimore"
postalCode.codepostalCodestring"21014"

user.exited_home#

Radar Event FieldSalesforce Event AttributeTypeExample
typetypestring"user.exited_home"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
confidenceconfidencestring"high"

If Regions is enabled, Radar will also send the following attributes:

Radar Event FieldSalesforce Event AttributeTypeExample
country.codecountryCodestring"US"
country.namecountryNamestring"United States"
state.codestateCodestring"MD"
state.namestateNamestring"Maryland"
dma.codedmaCodestring"26"
dma.namedmaNamestring"Baltimore"
postalCode.codepostalCodestring"21014"

user.entered_office#

Radar Event FieldSalesforce Event AttributeTypeExample
typetypestring"user.entered_office"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
confidenceconfidencestring"high"

If Regions is enabled, Radar will also send the following attributes:

Radar Event FieldSalesforce Event AttributeTypeExample
country.codecountryCodestring"US"
country.namecountryNamestring"United States"
state.codestateCodestring"MD"
state.namestateNamestring"Maryland"
dma.codedmaCodestring"26"
dma.namedmaNamestring"Baltimore"
postalCode.codepostalCodestring"21014"

user.exited_office#

Radar Event FieldSalesforce Event AttributeTypeExample
typetypestring"user.exited_office"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
confidenceconfidencestring"high"

If Regions is enabled, Radar will also send the following attributes:

Radar Event FieldSalesforce Event AttributeTypeExample
country.codecountryCodestring"US"
country.namecountryNamestring"United States"
state.codestateCodestring"MD"
state.namestateNamestring"Maryland"
dma.codedmaCodestring"26"
dma.namedmaNamestring"Baltimore"
postalCode.codepostalCodestring"21014"

user.started_traveling#

Radar Event FieldSalesforce Event AttributeTypeExample
typetypestring"user.started_traveling"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
confidenceconfidencestring"high"

If Regions is enabled, Radar will also send the following attributes:

Radar Event FieldSalesforce Event AttributeTypeExample
country.codecountryCodestring"US"
country.namecountryNamestring"United States"
state.codestateCodestring"MD"
state.namestateNamestring"Maryland"
dma.codedmaCodestring"26"
dma.namedmaNamestring"Baltimore"
postalCode.codepostalCodestring"21014"

user.stopped_traveling#

Radar Event FieldSalesforce Event AttributeTypeExample
typetypestring"user.stopped_traveling"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
confidenceconfidencestring"high"

If Regions is enabled, Radar will also send the following attributes:

Radar Event FieldSalesforce Event AttributeTypeExample
country.codecountryCodestring"US"
country.namecountryNamestring"United States"
state.codestateCodestring"MD"
state.namestateNamestring"Maryland"
dma.codedmaCodestring"26"
dma.namedmaNamestring"Baltimore"
postalCode.codepostalCodestring"21014"

user.entered_region_country#

Radar Event FieldSalesforce Event AttributeTypeExample Value
typetypestring"user.entered_region_country"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
region.coderegionCodestring"US"
region.nameregionNamestring"United States"
confidenceconfidencestring"high"

user.exited_region_country#

Radar Event FieldSalesforce Event AttributeTypeExample Value
typetypestring"user.exited_region_country"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
region.coderegionCodestring"US"
region.nameregionNamestring"United States"
confidenceconfidencestring"high"

user.entered_region_state#

Radar Event FieldSalesforce Event AttributeTypeExample Value
typetypestring"user.entered_region_state"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
region.coderegionCodestring"MD"
region.nameregionNamestring"Maryland"
confidenceconfidencestring"high"

user.exited_region_state#

Radar Event FieldSalesforce Event AttributeTypeExample Value
typetypestring"user.exited_region_state"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
region.coderegionCodestring"MD"
region.nameregionNamestring"Maryland"
confidenceconfidencestring"high"

user.entered_region_dma#

Radar Event FieldSalesforce Event AttributeTypeExample Value
typetypestring"user.entered_region_dma"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
region.coderegionCodestring"26"
region.nameregionNamestring"Baltimore"
confidenceconfidencestring"high"

user.exited_region_dma#

Radar Event FieldSalesforce Event AttributeTypeExample Value
typetypestring"user.exited_region_dma"
user.userIduserUserIdstring"1"
user.deviceIduserDeviceIdstring"10974a2ee035770b9"
region.coderegionCodestring"26"
region.nameregionNamestring"Baltimore"
confidenceconfidencestring"high"

user.started_trip#

Radar Event AttributeSalesforce Event AttributeTypeExample Value
trip.externalIdtripExternalIdstring"299"
trip.metadata[{key}]tripMetadata{key}{type}{value}
trip.destinationGeofenceTagtripDestinationGeofenceTagstring"store"
trip.destinationGeofenceExternalIdtripDestinationGeofenceExternalIdstring"123"

user.updated_trip#

Radar Event AttributeSalesforce Event AttributeTypeExample Value
trip.externalIdtripExternalIdstring"299"
trip.metadata[{key}]tripMetadata{key}{type}{value}
trip.destinationGeofenceTagtripDestinationGeofenceTagstring"store"
trip.destinationGeofenceExternalIdtripDestinationGeofenceExternalIdstring"123"

user.approaching_trip_destination#

Radar Event AttributeSalesforce Event AttributeTypeExample Value
trip.externalIdtripExternalIdstring"299"
trip.metadata[{key}]tripMetadata{key}{type}{value}
trip.destinationGeofenceTagtripDestinationGeofenceTagstring"store"
trip.destinationGeofenceExternalIdtripDestinationGeofenceExternalIdstring"123"

user.arrived_at_trip_destination#

Radar Event AttributeSalesforce Event AttributeTypeExample Value
trip.externalIdtripExternalIdstring"299"
trip.metadata[{key}]tripMetadata{key}{type}{value}
trip.destinationGeofenceTagtripDestinationGeofenceTagstring"store"
trip.destinationGeofenceExternalIdtripDestinationGeofenceExternalIdstring"123"

user.stopped_trip#

Radar Event AttributeSalesforce Event AttributeTypeExample Value
trip.externalIdtripExternalIdstring"299"
trip.metadata[{key}]tripMetadata{key}{type}{value}
trip.destinationGeofenceTagtripDestinationGeofenceTagstring"store"
trip.destinationGeofenceExternalIdtripDestinationGeofenceExternalIdstring"123"