# External navigation (Virtual event)

It is also possible to provide references for external navigation links in order to make it possible to recognise a user in external/own software.

This can be done by adding the variables`lgd_user_id` or `lgd_user_code` in the url parameters.

The software then automatically replaces these values with the corresponding values of the user. These values correspond to the values known in the [API](https://docs.letsgetdigital.com/).

The table below shows the variable as it can be used in the link and what value it corresponds to from the API.

| Variable in URL | API endpoint | Endpoint field |
| --------------- | ------------ | -------------- |
| `lgd_user_id`   | User         | `id`           |
| `lgd_user_code` | User         | `code`         |

### Examples

Add the following link to the navigation items: \
`https://www.letsgetdigital.com?your_id=lgd_user_id&your_code=lgd_user_code`

If a user with id `27` and code `TESTINGCODE123` will click on the link, the following link will be opened:\
`https://www.letsgetdigital.com?your_id=27&your_code=d5f3ef4396e64221092ec573dfe35b`

{% hint style="info" %}
The `lgd_user_code`is sent as an md5 hash of the `customer_id` and `code` field with an indent in between:&#x20;

```
md5(customer_id-code)
```

{% endhint %}
