Analytics.SetupAndStartRecording("YOUR API KEY");
There is no explicit
setup() method. The SDK is set up automatically.
Also, recording can be started even though the
project key is not set yet. The recorded data will not be sent out till the project key is set but will be stored for the "future" send.
This can be beneficial when the project key is fetched from a server. In this scenario, the recording can be started right away (on the application start). The recording will be complete, the upload of recorded data is just postponed for the moment when the project key is set.
Smartlook.Instance.preference.ProjectKey = "YOUR PROJECT KEY"; Smartlook.Instance.Start();
// Reset session Analytics.ResetSession(false); // Reset session & user Smartlook.ResetSession(true);
// Open new session Analytics.Instance.user.session.OpenNew(); // Open new session & user Smartlook.Instance.user.OpenNew();