# Installation

## Via CDN

XCE is initialized by loading a Javascript module via our CDN. Add the provided script to your head tag as follows:

{% code overflow="wrap" fullWidth="false" %}

```html
// production env
<script type="module" src="https://xce.xcover.com/{partner}/{version}/xcover-elements.js" async></script>


// sandbox(test) env
<script type="module" src="https://sandbox.xce.xcover.com/{partner}/{version}/xcover-elements.js" async></script>
```

{% endcode %}

{% hint style="danger" %}
Please make sure that the script tag is present on pages where elements are expected to be used.

`{partner}` and `{version}` will be supplied by our team.
{% endhint %}

After loading the script it will automatically load our BrightWrite (BW) client side dependency via CDN. This is used to facilitate AB Testing on our panel.

## XCE domains

{% hint style="warning" %}
Your integration must be able to reach any of XCE fully qualified domain names for it to function properly. Depending on how your integration operates, you might need to add them to an allowlist.
{% endhint %}

XCE uses the following fully qualified domain names to interact with your integration:

```
*.xcover.com
*.brightwrite.com
```


---

# 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://partner-docs.covergenius.com/xcover-elements/client-integration/installation.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.
