Radar can send events and user attributes to Cordial .
Use the Cordial integration to send location-triggered and location-targeted messages to increase engagement and conversion.
Configuration# On the Cordial API Keys page, create and copy a new API key with Contact Activities permissions. Additionally, ask the Cordial team to create a secondary key for contacts (e.g., emailHash) that you can pass to Radar.
Then, on the Radar Integrations page under Cordial , set Enabled to Yes and paste your API key. Note that you can set separate API keys and app identifiers for the Test and Live environments. Then, paste your async API endpoint, like https://integrations-ingest-svc.usw2.cordial.com. Finally, enter the secondary key.
Whenever events are generated, Radar will send custom events and user attributes to Cordial.
Set metadata[cordial:{secondaryKey}] to map Radar users to the secondary key on Cordial contacts. For example, if your secondary key is emailHash:
Radar.setMetadata(["cordial:emailHash": emailHash]) Copy Radar.setMetadata(JSONObject().put("cordial:emailHash", emailHash)) Copy User mapping# Radar User Field Cordial Contact Attribute Type Example Value Context Type metadata[cordial:{secondaryKey}]{secondaryKey}string "2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"_idradar_idstring "5b2c0906f5874b001aecfd8d"locationcurrent_locationlocation (39.525665, -76.350663)locationAuthorizationradar_location_authorizationstring "GRANTED_FOREGROUND"locationAccuracyAuthorizationradar_location_accuracy_authorizationstring "FULL"updatedAtradar_updated_attimestamp "2018-06-22T15:23:39.000Z"segments[*].externalIdradar_segment_external_idsarray[string] ["starbucks-visitors"]topChains[*].slugradar_top_chain_slugsarray[string] ["starbucks", "walmart"]topChains[*].externalIdradar_top_chain_external_idsarray[string] ["123", "456"]geofences[*]._idradar_geofence_idsarray[string] ["5b2c0906f5874b001aecfd8e"]Geofences geofences[*].descriptionradar_geofence_descriptionsarray[string] ["Store #123"]Geofences geofences[*].tagradar_geofence_tagsarray[string] ["store"]Geofences geofences[*].externalIdradar_geofence_external_idsarray[string] ["123"]Geofences place._idradar_place_idstring "59302bcf8f27e8a156bd4f91"Places place.nameradar_place_namestring "Starbucks"Places place.categoriesradar_place_categoriesarray[string] ["food-beverage", "cafe", "coffee-shop"]Places place.chain.slugradar_place_chain_idstring "starbucks"Places place.chain.nameradar_place_chain_namestring "Starbucks"Places country.coderadar_region_country_codestring "US"Regions country.nameradar_region_country_namestring "United States"Regions state.coderadar_region_state_codestring "MD"Regions state.nameradar_region_state_namestring "Maryland"Regions dma.coderadar_region_dma_codestring "26"Regions dma.nameradar_region_dma_namestring "Baltimore"Regions postalCode.coderadar_region_postal_codestring "21014"Regions trip.externalIdradar_trip_external_idstring "299"Trips trip.destinationGeofenceTagradar_trip_destination_geofence_tagstring "store"Trips trip.destinationGeofenceExternalIdradar_trip_destination_geofence_external_idstring "123"Trips beacons[*]._idradar_beacon_idsarray[string] ["5b2c0906f5874b001aecfd8f]"Beacons beacons[*].descriptionradar_beacon_descriptionsarray[string] ["Store #123 - Drive-Thru"]Beacons beacons[*].tagradar_beacon_tagsarray[string] ["drive-thru"]Beacons beacons[*].externalIdradar_beacon_external_idsarray[string] ["123"]Beacons
Event mapping# Radar Event Context Type Cordial Event user.entered_geofenceGeofences entered_geofenceuser.exited_geofenceGeofences exited_geofenceuser.dwelled_in_geofenceGeofences dwelled_in_geofenceuser.entered_placePlaces entered_placeuser.exited_placePlaces exited_placeuser.entered_region_countryRegions entered_countryuser.exited_region_countryRegions exited_countryuser.entered_region_stateRegions entered_stateuser.exited_region_stateRegions exited_stateuser.entered_region_dmaRegions entered_dmauser.exited_region_dmaRegions exited_dmauser.started_tripTrips started_tripuser.updated_tripTrips updated_tripuser.approaching_trip_destinationTrips approaching_trip_destinationuser.arrived_at_trip_destinationTrips arrived_at_trip_destinationuser.stopped_tripTrips stopped_tripuser.entered_beaconBeacons entered_beaconuser.exited_beaconBeacons exited_beacon
entered_geofence# Radar Event Field Cordial Event Property Type Example Value geofence._idgeofence_idstring "5b2c0906f5874b001aecfd8e"geofence.descriptiongeofence_descriptionstring "Store #123"geofence.taggeofence_tagstring "store"geofence.externalIdgeofence_external_idstring "123"geofence.metadata[{key}]geofence_metadata_{key}{type} {value}confidenceconfidencestring "high"foregroundforegroundboolean true
If Regions is enabled, Radar will also send the following attributes:
Radar Event Field Cordial Event Property Type Example Value country.codecountry_codestring "US"country.namecountry_namestring "United States"state.codestate_codestring "MD"state.namestate_namestring "Maryland"dma.codedma_codestring "26"dma.namedma_namestring "Baltimore"postalCode.codepostal_codestring "21014"
exited_geofence# Radar Event Field Cordial Event Property Type Example Value geofence._idgeofence_idstring "5b2c0906f5874b001aecfd8e"geofence.descriptiongeofence_descriptionstring "Store #123"geofence.taggeofence_tagstring "store"geofence.externalIdgeofence_external_idstring "123"geofence.metadata[{key}]geofence_metadata_{key}{type} {value}confidenceconfidencestring "high"durationdurationnumber (minutes) 42.1foregroundforegroundboolean true
If Regions is enabled, Radar will also send the following attributes:
Radar Event Field Cordial Event Property Type Example Value country.codecountry_codestring "US"country.namecountry_namestring "United States"state.codestate_codestring "MD"state.namestate_namestring "Maryland"dma.codedma_codestring "26"dma.namedma_namestring "Baltimore"postalCode.codepostal_codestring "21014"
dwelled_in_geofence# Radar Event Field Cordial Event Property Type Example Value geofence._idgeofence_idstring "5b2c0906f5874b001aecfd8e"geofence.descriptiongeofence_descriptionstring "Store #123"geofence.taggeofence_tagstring "store"geofence.externalIdgeofence_external_idstring "123"geofence.metadata[{key}]geofence_metadata_{key}{type} {value}confidenceconfidencestring "high"durationdurationnumber (minutes) 5foregroundforegroundboolean true
If Regions is enabled, Radar will also send the following attributes:
Radar Event Field Cordial Event Property Type Example Value country.codecountry_codestring "US"country.namecountry_namestring "United States"state.codestate_codestring "MD"state.namestate_namestring "Maryland"dma.codedma_codestring "26"dma.namedma_namestring "Baltimore"postalCode.codepostal_codestring "21014"
entered_place# Radar Event Field Cordial Event Property Type Example Value place._idplace_idstring "59302bcf8f27e8a156bd4f91"place.nameplace_namestring "Starbucks"place.chain.slugplace_chain_idstring "starbucks"place.chain.nameplace_chain_namestring "Starbucks"place.chain.externalIdplace_chain_external_idstring "123"place.chain.metadata[{key}]place_chain_metadata_{key}{type} {value}place.categoriesplace_categoriesstring (comma-separated) "food-beverage,cafe,coffee-shop"confidenceconfidencestring "high"foregroundforegroundboolean true
If Regions is enabled, Radar will also send the following attributes:
Radar Event Field Cordial Event Property Type Example Value country.codecountry_codestring "US"country.namecountry_namestring "United States"state.codestate_codestring "MD"state.namestate_namestring "Maryland"dma.codedma_codestring "26"dma.namedma_namestring "Baltimore"postalCode.codepostal_codestring "21014"
exited_place# Radar Event Field Cordial Event Property Type Example Value place._idplace_idstring "59302bcf8f27e8a156bd4f91"place.nameplace_namestring "Starbucks"place.chain.slugplace_chain_idstring "starbucks"place.chain.nameplace_chain_namestring "Starbucks"place.chain.externalIdplace_chain_external_idstring "123"place.chain.metadata[{key}]place_chain_metadata_{key}{type} {value}place.categoriesplace_categoriesstring (comma-separated) "food-beverage,cafe,coffee-shop"confidenceconfidencestring "high"durationdurationnumber (minutes) 42.1foregroundforegroundboolean true
If Regions is enabled, Radar will also send the following attributes:
Radar Event Field Cordial Event Property Type Example Value country.codecountry_codestring "US"country.namecountry_namestring "United States"state.codestate_codestring "MD"state.namestate_namestring "Maryland"dma.codedma_codestring "26"dma.namedma_namestring "Baltimore"postalCode.codepostal_codestring "21014"
entered_country# Radar Event Attribute Cordial Event Property Type Example Value region.coderegion_codestring "US"region.nameregion_namestring "United States"confidenceconfidencestring "high"foregroundforegroundboolean true
exited_country# Radar Event Attribute Cordial Event Property Type Example Value region.coderegion_codestring "US"region.nameregion_namestring "United States"confidenceconfidencestring "high"foregroundforegroundboolean true
entered_state# Radar Event Attribute Cordial Event Property Type Example Value region.coderegion_codestring "MD"region.nameregion_namestring "Maryland"confidenceconfidencestring "high"foregroundforegroundboolean true
exited_state# Radar Event Attribute Cordial Event Property Type Example Value region.coderegion_codestring "MD"region.nameregion_namestring "Maryland"confidenceconfidencestring "high"foregroundforegroundboolean true
entered_dma# Radar Event Attribute Cordial Event Property Type Example Value region.coderegion_codestring "26"region.nameregion_namestring "Baltimore"confidenceconfidencestring "high"foregroundforegroundboolean true
exited_dma# Radar Event Attribute Cordial Event Property Type Example Value region.coderegion_codestring "26"region.nameregion_namestring "Baltimore"confidenceconfidencestring "high"foregroundforegroundboolean true
started_trip# Radar Event Attribute Cordial Event Property Type Example Value trip.externalIdtrip_external_idstring "299"trip.metadata[{key}]trip_metadata_{key}{type} {value}trip.destinationGeofenceTagtrip_destination_geofence_tagstring "store"trip.destinationGeofenceExternalIdtrip_destination_geofence_external_idstring "123"foregroundforegroundboolean true
updated_trip# Radar Event Attribute Cordial Event Property Type Example Value trip.externalIdtrip_external_idstring "299"trip.metadata[{key}]trip_metadata_{key}{type} {value}trip.destinationGeofenceTagtrip_destination_geofence_tagstring "store"trip.destinationGeofenceExternalIdtrip_destination_geofence_external_idstring "123"foregroundforegroundboolean true
approaching_trip_destination# Radar Event Attribute Cordial Event Property Type Example Value trip.externalIdtrip_external_idstring "299"trip.metadata[{key}]trip_metadata_{key}{type} {value}trip.destinationGeofenceTagtrip_destination_geofence_tagstring "store"trip.destinationGeofenceExternalIdtrip_destination_geofence_external_idstring "123"foregroundforegroundboolean true
arrived_at_trip_destination# Radar Event Attribute Cordial Event Property Type Example Value trip.externalIdtrip_external_idstring "299"trip.metadata[{key}]trip_metadata_{key}{type} {value}trip.destinationGeofenceTagtrip_destination_geofence_tagstring "store"trip.destinationGeofenceExternalIdtrip_destination_geofence_external_idstring "123"foregroundforegroundboolean true
stopped_trip# Radar Event Attribute Cordial Event Property Type Example Value trip.externalIdtrip_external_idstring "299"trip.metadata[{key}]trip_metadata_{key}{type} {value}trip.destinationGeofenceTagtrip_destination_geofence_tagstring "store"trip.destinationGeofenceExternalIdtrip_destination_geofence_external_idstring "123"foregroundforegroundboolean true
entered_beacon# Radar Event Attribute Cordial Event Property Type Example Value beacon._idbeacon_idstring "5b2c0906f5874b001aecfd8f"beacon.descriptionradar_beacon_descriptionstring "Store #123 - Drive-Thru"beacon.tagradar_beacon_tagstring "drive-thru"beacon.externalIdradar_beacon_external_idstring "123"beacon.metadata[{key}]radar_beacon_metadata{key}{type} {value}confidenceconfidencestring "high"foregroundforegroundboolean true
exited_beacon# Radar Event Attribute Cordial Event Property Type Example Value beacon._idbeacon_idstring "5b2c0906f5874b001aecfd8f"beacon.descriptionradar_beacon_descriptionstring "Store #123 - Drive-Thru"beacon.tagradar_beacon_tagstring "drive-thru"beacon.externalIdradar_beacon_external_idstring "123"beacon.metadata[{key}]radar_beacon_metadata{key}{type} {value}confidenceconfidencestring "high"durationradar_durationnumber (minutes) 1.42foregroundforegroundboolean true