# Matching HubSpot Tokens to Storylane Tokens

***

## **Example: Storylane URL with HubSpot Tokens**

Formatted URL:

{% code overflow="wrap" %}

```
?email={{contact.email}}&token[first_name]={{contact.firstname}}&token[company_name]={{contact.companyname}}
```

{% endcode %}

Populated URL:

{% code overflow="wrap" %}

```
?email=example@storylane.io&token[first_name]=Matt&token[company_name]=Storylane
```

{% endcode %}

***

## **Understanding Tokens**

**Example Breakdown:**

* **Orange:** HubSpot tokens (e.g., `{{contact.email}}`)
* **Pink:** Storylane tokens (e.g., `token[first_name]`)

> <mark style="background-color:orange;">?email={{contact.email}}</mark><mark style="background-color:red;">\&token\[first\_name]=</mark><mark style="background-color:orange;">{{contact.firstname}}</mark><mark style="background-color:red;">\&token\[company\_name]=</mark><mark style="background-color:orange;">{{contact.companyname}}</mark>

* The query string starts with `?email={{contact.email}}`.
* Each token is separated by `&`.
* Use the word **token** in the parameter name to map Storylane tokens to HubSpot tokens.

***

## Step-by-Step Instructions

### 1. Set Up Tokens in HubSpot

1. Log in to your HubSpot account.
2. Navigate to **Settings** > **Properties**.
3. Tokens should be setup by default, however identify or create the tokens you need, such as:
   * `{{contact.email}}`
   * `{{contact.firstname}}`
   * `{{contact.companyname}}`

### 2. Map Tokens in Storylane

1. Open your Storylane dashboard.
2. Go to the demo you want to personalize.
3. Add Storylane tokens where you see fit - example:

<figure><img src="https://content.gitbook.com/content/2sKIxGF28KpCOEu2HGiB/blobs/R2yjbNPWdG4oJVjTHeej/Screenshot%202025-01-14%20at%209.56.30%E2%80%AFAM.png" alt=""><figcaption></figcaption></figure>

4. In the URL builder, use the following format to map tokens:

{% code overflow="wrap" %}

```
?email={{contact.email}}&token[first_name]={{contact.firstname}}&token[company_name]={{contact.companyname}}
```

{% endcode %}

### 3. Test the URL

1. Before sharing, test the URL by replacing the HubSpot tokens with *sample values:*

<pre data-overflow="wrap"><code><strong>?email=test@example.com&#x26;token[first_name]=John&#x26;token[company_name]=ExampleCorp
</strong></code></pre>

2. Paste the URL into a browser to ensure it populates correctly.

### 4. Share the URL

Once tested, you can use the URL in your HubSpot workflows, email templates, or sales outreach.

## Use Case

The primary use case is for creating personalized sales leave-behinds. For example, you can generate a Storylane demo URL that dynamically fills in a contact’s details, making it more engaging and relevant.

By following these steps, you can effectively link HubSpot tokens to Storylane tokens and create personalized, impactful sales leave-behinds.
