Amplitude

Manual integration

Smartlook can be easily integrated into Amplitude using IntegrationListener:

class CustomIntegrationListener implements IntegrationListener {
  @override
  void onSessionReady(String? dashboardSessionUrl) {
    analytics.logEvent('Smartlook session URL', eventProperties: {
      'session_url': dashboardSessionUrl
    });
  }

  @override
  void onVisitorReady(String? dashboardVisitorUrl) {
    final Identify identify = Identify()
      ..set('smartlook_visitor_url', dashboardVisitorUrl)

    analytics.identify(identify);
  }
}

//Put to your init state or some place you want to register this
Smartlook.instance.registerIntegrationListener(CustomIntegrationListener());

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