---
updatedAt: 2025-05-13T20:26:59.000Z
agentTools:
  projectIndex: https://mobile.developer.smartlook.com/v1.0/llms.txt
---

# 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:

```kotlin
Smartlook.setReferrer(referrer: String, source: String)
```
```java
Smartlook.setReferrer(String referrer, String source);
```

> 📘 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:

```kotlin
Smartlook.getDashboardSessionUrl(withCurrentTimestamp: Boolean)
```
```java
Smartlook.getDashboardSessionUrl(boolean withCurrentTimestamp);
```

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<Glossary>public shareable link</Glossary>** .

## Dashboard visitor URL

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

```kotlin
Smartlook.getDashboardVisitorUrl()
```
```java
Smartlook.getDashboardVisitorUrl();
```

> 🚧 This URL can be opened only by someone who has access to your dashboard. This is **not a<Glossary>public shareable link</Glossary>** .