Mixpanel

Manual integration

Smartlook can be easily integrated into Mixpanel using Event Listeners:

function sessionUrlChangedCallback(sessionUrl: string) {
    mixpanel.track(
            "Smartlook session URL",
            {"session_url": sessionUrl});
}

function userUrlChangedCallback(userUrl: string) {
    mixpanel.people.set({ "smartlook_user_url": userUrl });

    // identify must be called along with every instance of people.set
    mixpanel.identify("sample_identifier");
}

Smartlook.instance.eventListeners.registerUserChangedListener(userUrlChangedCallback);
Smartlook.instance.eventListeners.registerSessionChangedListener(sessionUrlChangedCallback);

Full Mixpanel documentation with examples can be found on the official website.