# Add a New Data Element (Server)

## Introduction

This document provides step-by-step guidance on adding a new data element for server-side configuration.

## Procedure

Perform the following steps to create the Data elements on browser:

**Step 1:** Click the ***Add Data Element*** dropdown and select  ***For Server***.

<figure><img src="/files/g7HrANd9LwamQFC18Na8" alt=""><figcaption></figcaption></figure>

**Step 2:** Under the **Info** section, enter the following details in the respective fields:

<figure><img src="/files/7Imvr8c1ldyCAFRXB5et" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Agpr0Pupc2bFCGRlKHWi" alt=""><figcaption></figcaption></figure>

| Field Name               | Description                                                                                                                                                                                                                                                                                                                                                         |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name                     | The Default Data Element Name.                                                                                                                                                                                                                                                                                                                                      |
| Variable Name            | <p>Denotes the variable name.<br><strong>Note</strong>: The Variable name is same as the Data Element name.</p>                                                                                                                                                                                                                                                     |
| Description              | Enter the description of the Data Element.                                                                                                                                                                                                                                                                                                                          |
| Choose Data Element Type | <p>Select the appropriate data element type based on your requirements:</p><ul><li><strong>Server Cookie:</strong> Retrieves data from server-side cookies.</li><li><strong>Server Header:</strong> Fetches data from HTTP headers sent by the server.</li><li><strong>JSON Path:</strong> Extracts data from JSON responses using a specified JSON path.</li></ul> |

**Step 3:** Click *Server Cookie*.

**Step 3.1:** Cookie Name: Enter the name of the cookie. This field is mandatory.

<figure><img src="/files/tDh260WOfRu0JFd4Jjvm" alt=""><figcaption></figcaption></figure>

**Step 3.2:** Default Value:

Select the **Default** Value from the drop-down. If the value for a particular data element is unavailable, the default value is used.

* Undefine&#x64;**:** If the data element is not supposed to be used then select Undefined.
* Empty Strin&#x67;**:** Denotes that the data element is a string value.
* Nul&#x6C;**:** Denotes the Null data type for the data element.
* Custom Valu&#x65;**:** Denotes the static value for the Data Element.

<figure><img src="/files/iIuntbHG6dllI0vm865a" alt=""><figcaption></figcaption></figure>

**Step 3.3:** Data Classification

Choose Data Classification:&#x20;

Select the appropriate classification for the data the element represents:

* Not Applicable
* Email
* Phone Number
* IP Address
* Date

<figure><img src="/files/B5eh7fwCTfOxbLXlhc7I" alt=""><figcaption></figcaption></figure>

**Step 3.3.1:** Redaction Strategy:

When you select Emai&#x6C;**,** Phone Numbe&#x72;**,** IP Address, or Date, an additional option appears:

Choose how the sensitive data should be handled:

* Not Applicable
* Anonymiz&#x65;**:** Masks or transforms the data to anonymize it.

<figure><img src="/files/GwuINxnYLqwa96GMRxX4" alt=""><figcaption></figcaption></figure>

**Step 4:** Click *Server Header*.

**Step 4.1:** Header Name: Enter the name of the server header. This field is *mandator&#x79;**.***

<figure><img src="/files/KT3CAtz4ravkInm1pQkJ" alt=""><figcaption></figcaption></figure>

**Step 4.2:** Default Value: Choose a fallback value if the actual data is unavailable:

* Undefine&#x64;**:** If the data element is not supposed to be used then select Undefined.
* Empty Strin&#x67;**:** Denotes that the data element is a string value.
* Nul&#x6C;**:** Denotes the Null data type for the data element.
* Custom Valu&#x65;**:** Denotes the static value for the Data Element.

<figure><img src="/files/BigGlfI3H1XgVWJcyeUv" alt=""><figcaption></figcaption></figure>

**Step 4.3:** Redaction

Data Classification

Choose Data Classification:&#x20;

Select the appropriate classification for the data the element represents:

* Not Applicable
* Email
* Phone Number
* IP Address
* Date

<figure><img src="/files/vO5V41jcWiysaIBs4Ey6" alt=""><figcaption></figcaption></figure>

**Step 4.3.1:** Redaction Strategy

When you select Email, Phone Number, IP Address, or Date, an additional option appears:

Choose how the sensitive data should be handled:

* Not Applicable
* Anonymiz&#x65;**:** Masks or transforms the data to anonymize it.

<figure><img src="/files/PJhzmFWgJSjStESmkvYu" alt=""><figcaption></figcaption></figure>

**Step 5:** Click Json path

**Step 5.1:** Enter the name of the JSON path data element. This field is mandatory.

<figure><img src="/files/cC7XYleF2kDv5j1Rc56J" alt=""><figcaption></figcaption></figure>

**Step 5.2:** Default Value:

* Undefine&#x64;**:** The data element will not be used.
* Empty Strin&#x67;**:** Sets the value as an empty string.
* Null: Assigns a `null` value to the data element.
* Custom Valu&#x65;**:** Enter a static value to use by default.

<figure><img src="/files/ItvoMx67DE6UI1x407Al" alt=""><figcaption></figcaption></figure>

**Step 5.3:** Clean\
Clean: Clears and trims any white spaces on the trailing and leading strings after collecting the data value.

**Step 5.4:** Lowercase:\
Denotes that the string needs to be in lower-case.

<figure><img src="/files/nBawdjvnhmaitxJwincr" alt=""><figcaption></figcaption></figure>

**Step 5.5:** Redaction

Choose Data Classification:&#x20;

Select the appropriate classification for the data the element represents:

* Not Applicable
* Email
* Phone Number
* IP Address
* Date

<figure><img src="/files/kgrArhK7CquS2PdI8hSa" alt=""><figcaption></figcaption></figure>

**Step 5.5.1:** Redaction Strategy:

When you select Emai&#x6C;**,** Phone Number, IP Address, or Date, an additional dropdown appears:

* Not Applicabl&#x65;**:** No redaction is applied.
* Anonymiz&#x65;**:** Personally identifiable information is masked or transformed.

<figure><img src="/files/wzzOgpsl5qZ9rVIne5Is" alt=""><figcaption></figcaption></figure>

**Step 6:** Once all the required fields are filled in, click Save

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2FcH16OCXzQCbxoKZlJhpA%2FAdd%20a%20New%20Data%20Element%20(Server).mp4?alt=media&token=442bb24d-f122-4a74-a8d5-05250a8526d6>" %}


---

# 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.ingestlabs.com/tag-manager/data-elements/add-a-new-data-element-server.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.
