Radar can send events and user properties to Mixpanel .
Use the Mixpanel integration to enrich behavioral events with location context, measure the ROI of location-based features, and build location-based user segments.
Configuration# On the Mixpanel Project Settings page, copy the token from the Access Keys section. Then, on the Radar Integrations page under Mixpanel , set Enabled to Yes and paste your token. Note that you can set separate tokens for the Test and Live environments.
Whenever events are generated, Radar will send custom events and user properties to Mixpanel.
By default, Radar userId maps to Mixpanel distinct ID for logged in users. However, you can specify a custom mapping by setting Radar metadata.mixpanelDistinctId. For example, on iOS:
Radar.setMetadata(["mixpanelDistinctId": distinctIdValue]) Copy User mapping# Note that Radar uses the special string "(null)" to represent null user property values.
Radar User Field Mixpanel User Property Type Example Value Context Type location.coordinates[1]$latitudenumber 39.525665location.coordinates[0]$longitudenumber -76.350663metadata.mixpanelDistinctId or userIdDistinct IDstring "1"location.coordinates[0]Radar Location Longitudenumber -76.350663location.coordinates[1]Radar Location Latitudenumber 39.525665locationAuthorizationRadar Location Authorizationstring "GRANTED_FOREGROUND"locationAccuracyAuthorizationRadar Location Accuracy Authorizationstring "FULL"_idRadar IDstring "5b2c0906f5874b001aecfd8d"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 Slugstring "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"Trip Tracking trip.destinationGeofenceTagRadar Trip Destination Geofence Tagstring "store"Trip Tracking trip.destinationGeofenceExternalIdRadar Trip Destination Geofence External IDstring "123"Trip Tracking 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 Mixpanel Event user.entered_geofenceGeofences Radar Geofence Entereduser.exited_geofenceGeofences Radar Geofence Exiteduser.dwelled_in_geofenceGeofences Radar Dwelled in Geofenceuser.entered_placePlaces Radar Place Entereduser.exited_placePlaces Radar Place Exiteduser.entered_region_countryRegions Radar Country Entereduser.exited_region_countryRegions Radar Country Exiteduser.entered_region_stateRegions Radar State Entereduser.exited_region_stateRegions Radar State Exiteduser.entered_region_dmaRegions Radar DMA Entereduser.exited_region_dmaRegions Radar DMA Exiteduser.started_tripTrip Tracking Radar Started Tripuser.updated_tripTrip Tracking Radar Updated Tripuser.approaching_trip_destinationTrip Tracking Radar Approaching Trip Destinationuser.arrived_at_trip_destinationTrip Tracking Radar Arrived at Trip Destinationuser.stopped_tripTrip Tracking Radar Stopped Tripuser.entered_beaconBeacons Radar Beacon Entereduser.exited_beaconBeacons Radar Beacon Exited
Radar Geofence Entered# Radar Event Field Mixpanel Event Property Type Example 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"foregroundForegroundstring true
Radar Geofence Exited# Radar Event Field Mixpanel Event Property Type Example 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.1foregroundForegroundstring true
Radar Dwelled in Geofence# Radar Event Field Mixpanel Event Property Type Example 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) 5foregroundForegroundstring true
Radar Place Entered# Radar Event Field Mixpanel Event Property Type Example place._idPlace IDstring "59302bcf8f27e8a156bd4f91"place.namePlace Namestring "Starbucks"place.chain.slugPlace Chain IDstring "starbucks"place.chain.namePlace Chain Namestring "Starbucks"place.categoriesPlace Categoriesarray[string] ["food-beverage", "cafe", "coffee-shop"]confidenceConfidencestring "high"foregroundForegroundstring true
Radar Place Exited# Radar Event Field Mixpanel Event Property Type Example place._idPlace IDstring "59302bcf8f27e8a156bd4f91"place.namePlace Namestring "Starbucks"place.chain.slugPlace Chain IDstring "starbucks"place.chain.namePlace Chain Namestring "Starbucks"place.categoriesPlace Categoriesarray[string] ["food-beverage", "cafe", "coffee-shop"]confidenceConfidencestring "high"durationDurationnumber (minutes) 42.1foregroundForegroundstring true
Radar Country Entered# Radar Event Field Mixpanel Event Property Type Example Value region.codeRegion Codestring "US"region.nameRegion Namestring "United States"confidenceConfidencestring "high"foregroundForegroundstring true
Radar Country Exited# Radar Event Field Mixpanel Event Property Type Example Value region.codeRegion Codestring "US"region.nameRegion Namestring "United States"confidenceConfidencestring "high"foregroundForegroundstring true
Radar State Entered# Radar Event Field Mixpanel Event Property Type Example Value region.codeRegion Codestring "MD"region.nameRegion Namestring "Maryland"confidenceConfidencestring "high"foregroundForegroundstring true
Radar State Exited# Radar Event Field Mixpanel Event Property Type Example Value region.codeRegion Codestring "MD"region.nameRegion Namestring "Maryland"confidenceConfidencestring "high"foregroundForegroundstring true
Radar DMA Entered# Radar Event Field Mixpanel Event Property Type Example Value region.codeRegion Codestring "26"region.nameRegion Namestring "Baltimore"confidenceConfidencestring "high"foregroundForegroundstring true
Radar DMA Exited# Radar Event Field Mixpanel Event Property Type Example Value region.codeRegion Codestring "26"region.nameRegion Namestring "Baltimore"confidenceConfidencestring "high"foregroundForegroundstring true
Radar Started Trip# Radar Event Attribute Mixpanel 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"foregroundForegroundstring true
Radar Updated Trip# Radar Event Attribute Mixpanel 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"foregroundForegroundstring true
Radar Approaching Trip Destination# Radar Event Attribute Mixpanel 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"foregroundForegroundstring true
Radar Arrived at Trip Destination# Radar Event Attribute Mixpanel 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"foregroundForegroundstring true
Radar Stopped Trip# Radar Event Attribute Mixpanel 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"foregroundForegroundstring true
Radar Beacon Entered# Radar Event Attribute Mixpanel Event Property Type Example Value beacon._idBeacon IDstring "5b2c0906f5874b001aecfd8f"beacon.descriptionBeacon Descriptionstring "Store #123 - Drive-Thru"beacon.tagBeacon Tagstring "drive-thru"beacon.externalIdBeacon External IDstring "123"beacon.metadata[{key}]Beacon Metadata {key}{type} {value}confidenceConfidencestring "high"foregroundForegroundstring true
Radar Beacon Exited# Radar Event Attribute Mixpanel Event Property Type Example Value beacon._idBeacon IDstring "5b2c0906f5874b001aecfd8f"beacon.descriptionBeacon Descriptionstring "Store #123 - Drive-Thru"beacon.tagBeacon Tagstring "drive-thru"beacon.externalIdBeacon External IDstring "123"beacon.metadata[{key}]Beacon Metadata {key}{type} {value}confidenceConfidencestring "high"durationDurationnumber (minutes) 1.42foregroundForegroundstring true