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

# SDK options

> Quiet the Squid ID console output, set the logging level, or tell the SDK who a visitor is, by setting window.$quid before the snippet loads.

The install snippet creates one global, `window.$quid`. The SDK reads it once, as it starts, so anything you want it to honour has to be set in the snippet itself, before the script tag is added. Nothing here is required. Most sites install the snippet as-is.

## Quiet the console

By default the SDK prints a few lines to the browser console, prefixed **Squid**, so you can see it load. To turn those off, add one line to the snippet, right after the global is created:

```html {4} theme={null}
<script>
  ;(function (squid) {
    window.$quid || (window.$quid = {})
    window.$quid.logger = { level: 0 }
    document.head.appendChild(
      (function (s) {
        s.src = 'https://app.asksquid.ai/tfs/' + squid + '/sdk'
        s.async = 1
        return s
      })(document.createElement('script')),
    )
  })('YOUR_SDK_KEY')
</script>
```

The level is a number:

| Level | Prints |
| - | - |
| `0` | Nothing |
| `1` | Errors only |
| `2` | Errors and warnings |
| `3` | Everything, including the info lines. This is the default. |

> [!TIP]
>
> Level `1` is a good production setting. It keeps the console clean but still surfaces a problem, such as a blocked connection, when someone on your team opens devtools.

If you use Google Tag Manager, WordPress, or another platform where you pasted the snippet into a settings field, edit that field the same way. The line must sit between `window.$quid || (window.$quid = {})` and `document.head.appendChild(`.

## Other options

The same global accepts a few more settings. Set any of them in the same place.

| Setting | Type | What it does |
| - | - | - |
| `logger.level` | number | Console output, as above. |
| `visitor` | object | Tells the SDK who the visitor is, for example after a login or a form submit, so their pages attach to a known person. |
| `connection.ready` | function | Called once the SDK has connected, with the connection details. |
| `connection.options.simple` | boolean | Loads a lighter connection mode. Leave it unset unless support asks you to turn it on. |

All together:

```js theme={null}
window.$quid = {
  logger: { level: 1 },
  connection: {
    ready: function (conn) { /* the SDK is up */ }
  }
}
```

`window.$quid` must be a plain object. A function or anything else is ignored with a warning.

## Checking it worked

Reload a page and open the browser console. At level `0` there should be no lines prefixed **Squid**. If they still appear, the snippet ran before your `logger` line, or the platform re-generated the snippet without it. Then [verify the install](https://docs.squid-id.com/getting-started/verify.md) as usual; quieting the console does not change what the SDK sends.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.