> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usertour.io/llms.txt
> Use this file to discover all available pages before exploring further.

# init()

> Initialize the Usertour SDK with your environment token

The `init()` method initializes the Usertour SDK for your environment. This method must be called once per page load before making any other Usertour.js calls.

## Parameters

<ParamField path="token" type="string" required>
  Your Usertour environment token. You can find this token under [Settings → Environments](https://app.usertour.io/project/1/settings/environments). Each environment (e.g., Production, Staging) has its own unique token.
</ParamField>

## Example

```javascript theme={null}
// Initialize the Usertour SDK with your environment token
usertour.init('USERTOUR_TOKEN');
```

## Notes

* The `init()` method must be called before any other Usertour.js methods
* Each environment (Production, Staging, etc.) requires its own unique token
* The token is used to identify your environment and load the correct configuration
