Manual integration
Smartlook can be easily integrated into Mixpanel using IntegrationListener
:
class CustomIntegrationListener implements IntegrationListener {
@override
void onSessionReady(String? dashboardSessionUrl) {
mixpanel.track(
"Smartlook session URL",
{"session_url": dashboardSessionUrl});
}
@override
void onVisitorReady(String? dashboardVisitorUrl) {
mixpanel.getPeople().set("smartlook_user_url", dashboardVisitorUrl);
// identify must be called along with every instance of people.set
mixpanel.identify("sample_identifier");
}
}
//Put to your init state or some place you want to register this
Smartlook.registerIntegrationListener(CustomIntegrationListener());
Full Mixpanel documentation with examples can be found on the official website.