---
updatedAt: 2025-03-07T14:32:03.000Z
agentTools:
  projectIndex: https://docs.gamesight.io/llms.txt
---

# get

The `get` method provides an interface to control values that will be used this Web SDK instance. This commonly includes actions like setting User ID values and configuring which integrations are enabled.

```javascript
gsght('get', '{field}')
```

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Argument
      </th>

      <th style={{ textAlign: "left" }}>
        Type
      </th>

      <th style={{ textAlign: "left" }}>
        Example
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        `{field}`
      </td>

      <td style={{ textAlign: "left" }}>
        String
      </td>

      <td style={{ textAlign: "left" }}>
        `'user_id'`
      </td>

      <td style={{ textAlign: "left" }}>
        The field that you want to get the value for. See the section below for supported fields
      </td>
    </tr>
  </tbody>
</Table>

> 🚧 Using `get` with `onload`
>
> Calls to `get` will fail unless the Web SDK has been fully initialized before the call. To ensure this is handled consistently, please look at using the [onload](https://docs.gamesight.io/reference/onload) method.

## Fields

### `gsid`

Gets the Gamesight Session ID (`gsid`) for the current device.

```javascript
gsght('get', 'gsid') // 513f5c447d384684a11603cae3083895
```

### `user_id`

Gets the list of `user_id` values that have been set on the current instance of the Web SDK

```javascript
gsght('get', 'user_id') // [{UserPayload}]
```

### `root_domain`

Gets the current `root_domain` that is being used for this instance of the Web SDK

```javascript
gsght('get', 'root_domain') // https://gsght.com
```

### Additional keys

In addition to the above key, the `get` method supports: `warnings`, `gs_enabled`, `fb_enabled`, and `acm_enabled`