# Loading into Wix

### **Integration steps of a JavaScript in Wix**

Option 1: Integration via the "Settings" > "Custom Code" tab

1. Log in to your Wix account and access your dashboard.
2. In the left-hand menu, click on Settings > Custom Code.
3. Click on Add Custom Code.
4. Paste the JavaScript script into the provided field:

```
<script type="text/javascript" src="https://cache.consentframework.com/js/pa/XXXXX/c/yyyyy/stub"></script>
<script type="text/javascript" src="https://choices.consentframework.com/js/pa/XXXXX/c/yyyy/cmp" async></script>
```

Set:

* Name of the code (e.g., "Sirdata CMP").
* Pages on which the script should run (recommended: "All pages").
* Script location: choose \<head> according to your provider's recommendations.
* Activation condition: on each page load.

Click Apply.


---

# 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://cmp.docs.sirdata.net/en/install/in-a-cms/loading-into-wix.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.
