Mixpanel
Airbridge supports integration with Mixpanel. With the integration, attribution data are passed from Airbridge to Mixpanel, allowing you to leverage the attribution data to uncover in-depth insights into how users interact with your product in Mixpanel.
Airbridge ↔ Mixpanel Integration
For the Mixpanel integration, it is required to set Mixpanel SDK's Device ID as Airbridge SDK's Device Alias. After setting Device Alias and enabling Mixpanel integration on the Airbridge dashboard, the Event collected from Airbridge SDK and attribution data will be sent to Mixpanel via Server to Server.
Minimum SDK Version
- Airbridge Android SDK: 2.19.5
- Airbridge iOS SDK: 1.18.0
- Airbridge Web SDK Loader: 1.3.0
- Airbridge React Native SDK: 1.5.0
- Airbridge Cordova SDK: 2.0.2
- Airbridge Flutter SDK: 3.0.2
- Airbridge Unity SDK: 1.9.0
Integration - Android
// MainApplication.java
@Override
public void onCreate() {
super.onCreate();
// Initialize Airbridge SDK
AirbridgeConfig config = new AirbridgeConfig.Builder("APP_NAME", "APP_TOKEN")
// Make Airbridge SDK explicitly start tracking
.setAutoStartTrackingEnabled(false)
.build();
Airbridge.init(this, config);
// Set device alias into Airbridge SDK
Airbridge.setDeviceAlias("mixpanel_device_id", Amplitude.getInstance().getDeviceId());
// Explicitly start tracking
Airbridge.startTracking();
}
// MainApplication.kt
override fun onCreate() {
super.onCreate()
// Initialize Airbridge SDK
val config = AirbridgeConfig.Builder("YOUR_APP_NAME", "YOUR_APP_SDK_TOKEN")
// Make Airbridge SDK explicitly start tracking
.setAutoStartTrackingEnabled(false)
.build()
Airbridge.init(this, config)
// Set device alias into Airbridge SDK
Airbridge.setDeviceAlias("amplitude_device_id", Amplitude.getInstance().getDeviceId())
// Explicitly start tracking
Airbridge.startTracking()
}
Integration - iOS
// AppDelegate.swift
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]?
) {
AirBridge.setAutoStartTrackingEnabled(false)
AirBridge.getInstance("YOUR_APP_TOKEN", appName:"YOUR_APP_NAME", withLaunchOptions:launchOptions)
AirBridge.state()?.setDeviceAlias(withKey:"mixpanel_device_id", value:Mixpanel.mainInstance().distinctId)
AirBridge.startTracking()
}
// AppDelegate.m
- (BOOL) application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
AirBridge.autoStartTrackingEnabled = NO;
[AirBridge getInstance:@"YOUR_APP_TOKEN" appName:@"YOUR_APP_NAME" withLaunchOptions:launchOptions];
[AirBridge.state addUserAliasWithKey:@"mixpanel_device_id" value:Mixpanel.mainInstance.distinctId];
[AirBridge startTracking];
}
Integration - Web
airbridge.init({
...
autoStartTrackingEnabled: false,
})
airbridge.setDeviceAlias('mixpanel_device_id', mixpanel.get_distinct_id())
airbridge.startTracking()
Integration - React Native
Airbridge.state.setDeviceAlias("mixpanel_device_id", await Mixpanel.getDistinctId())
Airbirdge.state.startTracking()
For the integration, set the 'autoStartTrackingEnabled' option from airbridge.json as 'false'.
Integration - Cordova
Airbridge.state.setDeviceAlias("mixpanel_device_id", mixpanel.get_distinct_id())
Airbirdge.state.startTracking()
For the integration, set the 'autoStartTrackingEnabled' option from airbridge.json as 'false'.
Integration - Flutter
Airbridge.state.setDeviceAlias("mixpanel_device_id", await mixpanel.getDistinctId())
Airbirdge.state.startTracking()
For the integration, set the 'autoStartTrackingEnabled' option from airbridge.json as 'false'.
Integration - Unity
AirbridgeUnity.SetDeviceAlias("mixpanel_device_id", Mixpanel.DistinctId);
AirbridgeUnity.StartTracking()
For the integration, set the 'autoStartTrackingEnabled' option from Project Setup as 'false'.
Updated almost 2 years ago