Manual integration
Smartlook can be easily integrated into Amplitude using IntegrationListener
:
class CustomIntegrationListener implements IntegrationListener {
void onSessionReady(String dashboardSessionUrl) {
analytics.logEvent('Smartlook session URL', eventProperties: {
'session_url': dashboardSessionUrl
});
}
void onVisitorReady(String dashboardVisitorUrl) {
final Identify identify = Identify()
..set('smartlook_visitor_url', dashboardVisitorUrl)
analytics.identify(identify);
}
}
Smartlook.registerIntegrationListener(CustomIntegrationListener());
Full Amplitude documentation with examples can be found on the official website.