# Set-Up your Tag domain delegation

This feature is in the early adoption phase. To benefit from it, please get in touch with your CSM.

The [Tag Implementation Page](https://app2.abtasty.com/settings/installation-code/tag) supports two hosting methods:

1. AB Tasty Hosted – Default
2. AB Tasty Delegated

{% hint style="info" %}
This article helps you implement a Tag domain delegation implementation article. If you want to host the Tag on AB Tasty, please read [Set-Up The AB Tasty Tag in 5 minutes.](/account/tag-integration/implement-ab-tasty-tag/set-up-the-ab-tasty-tag-in-5-minutes.md)
{% endhint %}

To know how to select a domain and check your implementation, please read the full procedure on [How to implement Generic Tag](/account/tag-integration/implement-ab-tasty-tag/how-to-implement-the-generic-tag.md).

{% hint style="info" %}
**Good to know:**\
You can leave and return to complete the setup anytime.
{% endhint %}

{% stepper %}
{% step %}

#### Subdomain Setup

{% hint style="warning" %}
Warning : Do not choose a keyword that might be blocked by third-party extensions
{% endhint %}

<div data-with-frame="true"><figure><img src="https://lh7-qw.googleusercontent.com/docsz/AD_4nXdkxG93P_7GEuDQ1VZVJz2TkYy845dqNOdz2nMtyoWiitwoctFne8QxNYsgMzo9rMEGMTufSOEhBkle3uvDOa6AmErIts0NK1FOjHbzlkXQEeI3aOVitAF-C5bPd2jFcY9S9qll?key=7Kv7EpWWNJ01lXGnmObnscyN" alt=""><figcaption></figcaption></figure></div>

1. In your **Generic tag** page **> Your tag configuration** zone, click on **Edit configuration**.&#x20;

   <div data-with-frame="true"><figure><img src="/files/Vb20oNoJQfCDPObWNQZq" alt=""><figcaption></figcaption></figure></div>
2. In the **Edit tag configuration** page, select **Delegation**.&#x20;
3. Enter a subdomain (e.g., mysitedomain.com)&#x20;

   <div data-with-frame="true"><figure><img src="/files/WF9I22YR9KduyC2kGWTY" alt=""><figcaption></figcaption></figure></div>
4. Click **Save** to trigger infrastructure setup.

The **Status Pending** status appears until the DNS records are generated. This action can take a few minutes. Once done, a **Step completed** status appears.&#x20;
{% endstep %}

{% step %}

#### DNS Configuration

1. When the Two DNS records are displayed, configure them in your domain provider. &#x20;

   <div data-with-frame="true"><figure><img src="/files/LZ4MkCo4LCCAwIF3CY4U" alt=""><figcaption></figcaption></figure></div>
2. Click **Check implementation** to trigger DNS check and tag refresh. \
   This action can take a few minutes. Once done, a **Step completed** status appears.&#x20;
3. Click on **Simulate changes** to go to the next step.
   {% endstep %}

{% step %}

#### Setup validation

1. Review your changes.
2. If you agree with the changes, check the 2 confirmation boxes.&#x20;

   <div data-with-frame="true"><figure><img src="/files/FHoDeCT54R09quy5b8QX" alt="" width="375"><figcaption></figcaption></figure></div>
3. Click **Confirm and apply changes.**
   {% endstep %}

{% step %}

#### Code implementation

{% hint style="info" %}
Read our dedicated documentation to know [how to choose between synchronous (recommended) and Asynchronous tag implementation. ](/account/tag-integration/understand-ab-tasty-tag-implementation-methods/choose-between-synchronous-and-asynchronous-methods.md)
{% endhint %}

1. Copy the content of **one** the tag code (either Synchronous or Asynchronous).
2. Open your website code.
3. Paste **one** of the tag codes between the \</head> tags of your pages.&#x20;
4. Go back to the Tag configuration page&#x20;
5. Click **I'm done**.
6. Implementation verification is handled automatically. Your tag will be refreshed upon validation. You are redirected to the **Generic Tag** page.
7. To make sure your tag is correctly implemented, click on **Check your tag implementation**.
   {% endstep %}
   {% endstepper %}

{% hint style="info" %}
G**ood to know:**\
For further verification, refer to our [QA and validate the Generic Tag](/account/tag-integration/qa-and-validate-your-ab-tasty-tag.md) article.
{% endhint %}


---

# 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.abtasty.com/account/tag-integration/implement-ab-tasty-tag/how-to-implement-the-generic-tag/tag-domain-delegation-implementation.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.
