Utilities

Dashboard session URL

Pre API 2.0

val sessionURL = Smartlook.getDashboardSessionUrl(false)
val sessionURLWithTimestamp = Smartlook.getDashboardSessionUrl(true)
URL sessionURL = Smartlook.getDashboardSessionUrl(false);
URL sessionURLWithTimestamp = Smartlook.getDashboardSessionUrl(true);

API 2.0

val sessionURL = Smartlook.instance.user.session.url
val sessionURLWithTimestamp = Smartlook.instance.user.session.urlWithTimestamp
URL sessionURL = Smartlook.getInstance().getUser().getSession().getUrl();
URL sessionURLWithTimestamp = Smartlook.getInstance().getUser().getSession().getUrlWithTimestamp();

Session URL documentation.

Dashboard visitor URL

Pre API 2.0

val visitorURL = Smartlook.getDashboardVisitorUrl()
URL visitorURL = Smartlook.getDashboardVisitorUrl();

API 2.0

val userURL = Smartlook.instance.user.url
URL userURL = Smartlook.getInstance().getUser().getUrl();

User URL documentation.

Install referrer

Pre API 2.0

Smartlook.setReferrer("sample_referrer", "sample_source")
Smartlook.setReferrer("sample_referrer", "sample_source");

API 2.0

Smartlook.instance.referrer = Referrer("sample_referrer", "sample_source")
Smartlook.gettInstance().setReferrer(new Referrer("sample_referrer", "sample_source"));