Utility methods

Install referrer

When an application is installed from the Google Play Store, Smartlook SDK automatically tracks install referrer.

A custom referrer can also be set by using the following:

smartlook.setReferrer(new SmartlookReferrer(referrer: string, source: string))

📘

Referrer value and source of installation are stored per visitor and can be viewed in the Smartlook Dashboard.

Dashboard session URL

A URL leading to the Smartlook Dashboard for a currently recorded session can be obtained like this:

smartlook.getDashboardSessionUrl(new SmartlookDashboardSessionUrl(withCurrentTimestamp: boolean)): Promise<string>
smartlook.getDashboardSessionUrl(new SmartlookDashboardSessionUrl(false))).then((dashboardSessionUrl) => {
  alert(dashboardSessionUrl)
});

If withCurrentTimestamp is set to true link it will include information about the current recording timestamp. This will ensure that the player will start playing the session at the moment when getDashboardSessionUrl was called.

🚧

This URL can be opened only by someone who has access to your dashboard. This is not a public shareable link.

Dashboard visitor URL

AURL leading to the Smartlook Dashboard for a currently recorded visitor can be obtained like this:

smartlook.getDashboardVisitorUrl(): Promise<string>
smartlook.getDashboardVisitorUrl().then((dashboardVisitorUrl) => {
  alert(dashboardVisitorUrl)
});

🚧

This URL can be opened only by someone who has access to your dashboard. This is not a public shareable link.