# Apply tracker settings by regex

{% hint style="success" %}
**Access Type**: Compliance Report - Editor
{% endhint %}

Didomi persists a tracker's configured settings across subsequent compliance reports by matching the following fields for the tracker in your tracker policy:

* Name
* Party
* Initiator
* Type

If all of the fields above are consistent across a compliance report and tracker policy then the settings for the tracker will persist.&#x20;

There are specific use-cases where you may want to persist a single set of exemptions and purposes across a group of trackers that follow a particular pattern. Utilizing [regular expression (regex)](/get-started/general/regular-expression-regex.md), your organization can provide the pattern for a single tracker and Didomi will apply the tracker's settings to any tracker found in a compliance report that matches the configured pattern.

> Example:
>
> Your organization has three cookies being dropped by the same vendor on a domain that should have the same settings. The trackers that are dropped are:
>
> * `_ga`
> * `_ga#`
> * `_ga_12345`<br>

Using the example above, your organization can attribute and persist the same set of exemptions and purposes across all three cookies with a regex of `^_ga` .&#x20;

To define this pattern, click **Compliance Report** on the right-hand panel and select the ellipsis inline with a domain on the subsequent page.&#x20;

Click **Manage tracker policy** from the drop-down menu.

<figure><img src="/files/HRMGXNCv4D1Gs8DMw2db" alt="" width="563"><figcaption></figcaption></figure>

Select a tracker on the list that will be used to set the pattern for the other trackers that fit the pattern and click **Edit**.&#x20;

<figure><img src="/files/OSJeno8pYlg0pQ24GOUb" alt="" width="563"><figcaption></figcaption></figure>

In the subsequent modal, enable the **Tracker name is a RegEx** setting and use the **Tracker name** field to input the regex that should be used to match other trackers that fit the pattern.&#x20;

Click **Save** when finished.&#x20;

<figure><img src="/files/7dgvquXOhWEtdvx9oW4q" alt="" width="375"><figcaption></figcaption></figure>

All trackers that match your configured regex pattern will inherit the source tracker's exemptions and purposes.


---

# 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://docs.didomi.io/compliance-report/tracker-policy/apply-tracker-settings-by-regex.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.
