# 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
```
