Manual integration
Smartlook can be easily integrated into Amplitude using IntegrationListener
:
public class IntegrationListener : SmartlookUnity.IntegrationListener
{
public override void onSessionReady(string dashboardSessionUrl)
{
Dictionary<string, object> options = new Dictionary<string, object>() {
{"dashboardSessionUrl" , dashboardSessionUrl }
};
Amplitude.Instance.logEvent("Smartlook session URL", options);
}
public override void onVisitorReady(string dashboardVisitorUrl)
{
Dictionary<string, object> userProperties = new Dictionary<string, object>() {
{"dashboardVisitorUrl", dashboardVisitorUrl}
};
Amplitude.Instance.setUserProperties(userProperties);
}
}
SmartlookUnity.Smartlook.RegisterIntegrationListener(new IntegrationListener());
Full Amplitude documentation with examples can be found on the official website.