Manual integration
Smartlook can be easily integrated into Amplitude using IntegrationListener
:
Smartlook.registerIntegrationListener({
onSessionReady: function (dashboardSessionUrl) {
amplitudeClient.logEvent(
"Smartlook session URL",
{"session_url": dashboardSessionUrl});
},
onVisitorReady: function (dashboardVisitorUrl) {
var identify = new amplitude.Identify().set("smartlook_visitor_url", dashboardVisitorUrl);
amplitude.identify(identify);
}
});
Full Amplitude documentation with examples can be found on the official website.