# Script installation on Commanders Act CAX

**Contener connection and selection**

* Go onto the Commanders Act platform
* Choose the appropriate contener. It is essential that the tag is triggered on all landing pages.

**Tags template selection**

!\[Capture d'écran 2023-03-13 115313-20240111-152136.png]\(.gitbook/Capture d'écran 2023-03-13 115313-20240111-152136.png)

* Go to the step of choosing tag templates
* Search for “Adloop” in the search bar
* Choose the “Adloop Tracking and Attribution” template. You’ll be redirected to the editing step.

**Template edition**

Fill in the 3 following fields:

* The custom dimension configured in your Analytics tool
* Subdomains that should be considered as a separate referrer
* Referrers to be excluded (the list should be the same as the one in your Analytics tool), like payment platforms

!\[Capture d'écran 2024-01-11 141320-20240111-152202.png]\(.gitbook/Capture d'écran 2024-01-11 141320-20240111-152202.png)

**Consent**

* Set the consent for the Adloop tag (Analytics/Measurement category)

**Publishing**

* Place the Adloop tag between the initialization of your Analytics solution and the pageview event being sent
* Proceed with the contener generation and make sure there are no error during the auto-test step
* Publish the contener

**In the case of the a single tag for initialization**

If you use a single tag for initializing your analytics solution and for sending the page view event, then simply place the Adloop tag before your Analytics tag and modify your Analytics tag to include the code for populating the custom dimension. Below is an example of how you can implement it with Google Analytics 4 (add line 2 and 6 in your GA4 code) :

![image-20240219-153828.png](/files/MnkBij5GFhrJAGj865VL)


---

# 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://community.commandersact.com/adloop/vii-adloop-tracking-and-attribution/b.-adloop-script-installation-and-checking/script-installation-on-commanders-act-cax.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.
