# Configuration

You can use this function to configure the SDK if you wish.

Parameters

| Name         | Type   | Required | Description                                                                  |
| ------------ | ------ | -------- | ---------------------------------------------------------------------------- |
| pageUrl      | String | No       | If you would like to send custom page url                                    |
| destionation | string | No       | If you would like to set configuration only for a specific EdgeTag instance. |

Examples

{% code title="For all instances" %}

```javascript
import { config } from '@blotoutio/edgetag-sdk-js'

config({ pageUrl: 'https://mysite.com/page' })
```

{% endcode %}

{% code title="Set configuration for a specific instance" %}

```javascript
import { config } from '@blotoutio/edgetag-sdk-js'

config({ pageUrl: 'https://mysite.com/page', destination: 'https://d.mysite.com' })
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.edgetag.io/implementation/headless/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
