Mixpanel
The Mixpanel dispatcher automatically dispatches events to the Mixpanel SDK, using UTM tags when available.
Two flavors of the dispatcher are available, depending on which flavour of the Mixpanel SDK you're using:
One for the Objective-C Mixpanel SDK
One for the Swift Mixpanel SDK
"https://github.com/BatchLabs/Batch-iOS-mixpanel-swift-dispatcher"pod 'BatchMixpanelSwiftDispatcher'
# or
# pod 'BatchMixpanelObjcDispatcher'github "BatchLabs/Batch-iOS-mixpanel-swift-dispatcher"
# or
# github "BatchLabs/Batch-iOS-mixpanel-objc-dispatcher"Don't forget to register the dispatcher:
import Batch
import BatchMixpanelSwiftDispatcher
// or import BatchMixpanelObjcDispatcher
import Mixpanel
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    
    func application(_ application: UIApplication,
                     didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Find your mixpanel setup line, which looks like this:
        let mixpanel = Mixpanel.initialize(token: "MIXPANEL_TOKEN")
        // Objective-C Mixpanel SDK users: let mixpanel = Mixpanel.sharedInstance(withToken: "MIXPANEL_TOKEN")
        let mixpanelDispatcher = BatchMixpanelSwiftDispatcher.instance
        // If you're using BatchMixpanelObjcDispatcher, comment the previous lines and uncomment the next one
        // let mixpanelDispatcher = BatchMixpanelObjcDispatcher.instance()
         
        // Tell Batch about your Mixpanel instance to enable tracking
        mixpanelDispatcher.mixpanelInstance = mixpanel
        BatchEventDispatcher.add(mixpanelDispatcher)
        [...]
        BatchSDK.start(withAPIKey: "YOUR_API_KEY")
        return true
    }
}// MYAppDelegate.m
@import Batch;
@import BatchMixpanelObjcDispatcher;
@import Mixpanel;
@implementation MYAppDelegate
- (BOOL)application:(UIApplication *)application 
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Find your mixpanel setup line, which looks like this:
    Mixpanel *mixpanel = [Mixpanel sharedInstanceWithToken:@"MIXPANEL_TOKEN"];
    
    // BatchMixpanelSwiftDispatcher isn't supported from Objective-C
    BatchMixpanelObjcDispatcher *mixpanelDispatcher = [BatchMixpanelObjcDispatcher instance];
    // Tell Batch about your Mixpanel instance to enable tracking
    mixpanelDispatcher.mixpanelInstance = mixpanel;
    [BatchEventDispatcher addDispatcher:mixpanelDispatcher];
    [...]
    [BatchSDK startWithAPIKey:@"MY_API_KEY"];
    return YES;
}
@endOnce your dispatcher is installed, restart your app and you should see something like this in your log:
[Batch] EventDispatcher - Adding event dispatcher: BatchFirebaseDispatcherLast updated

