> For the complete documentation index, see [llms.txt](https://community.commandersact.com/adloop/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community.commandersact.com/adloop/vii-adloop-tracking-and-attribution/b.-adloop-script-installation-and-checking/pre-requisite-for-the-adloop-script.md).

# Pre-requisite for the Adloop script

With Google Analytics UAWe need you to create a custom dimension in Google Analytics, in which we will put the information gathered by our script.

Specifications of the custom dimension:

* scope: session
* name: Adloop Click
* number of custom dimensions: if you have GA360, a custom dimension for every 75 000 daily sessions is needed ; if you don’t have GA360, a custom dimension for every 50 000 sessions is needed.

Also, you’ll need the list of excluded referrers (especially payment platforms) when doing the set-up in Adloop.

You’ll find this list in GA > Admin > Property > Tracking Info > Referral Exclusion List.

With Google Analytics 4

* Go to "Configure"

![](https://3498010832-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3KEERJBEyYQ7ZxIIMK79%2Fuploads%2Fgit-blob-e2021894850e5f344528731f073c6955ec870d75%2Fimage-20230427-154748.png?alt=media)

* Go to "Custom Definitions"

![](https://3498010832-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3KEERJBEyYQ7ZxIIMK79%2Fuploads%2Fgit-blob-f8504eb491be303f590631fc959317b9953d2d09%2Fimage-20230427-154756.png?alt=media)

* Create 2 custom dimensions dedicated to Adloop:
  * The first one:
  * Click on "Create custom dimensions"
  * Name it Adloop Click 1
  * Select "Event" as scope
  * Event parameter: adloop\_click\_1

![](https://3498010832-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3KEERJBEyYQ7ZxIIMK79%2Fuploads%2Fgit-blob-43ab03a6116a765c68bef6802cfd471849939a53%2Fimage-20230427-154825.png?alt=media)

```
* The second one:


* Click on "Create custom dimensions"


* Name it Adloop Click 1 Meta


* Select "Event" as scope


* Event parameter: adloop_click_1_meta





```

![](https://3498010832-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3KEERJBEyYQ7ZxIIMK79%2Fuploads%2Fgit-blob-ed125cf60f9b22f60f281ce3234334369ec13cdf%2Fimage-20230725-144242.png?alt=media)

Also, you’ll need the list of excluded referrers that you will find in GA4 under Data Streams > Configure Tag settings > All settings > List unwanted referrals

With PianoCreate two custom dimensions adl1 and adl1\_meta

Type: String

The dimension does not contain personal data
