# View Staging Environment

## Introduction

To view the Staging Environment, select the **Staging** option on the Environments screen.

## Procedure

Under the *Name* field, click *Staging*.

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

## Info <a href="#info" id="info"></a>

The **Info** section includes the following information.

* **Name**: Displays **Staging**, indicating the environment type.
* **Description**: Displays **Staging Environment**, which gives more details about the selected environment.

<figure><img src="/files/5QnIwJJx5AKCCItPV6GS" alt=""><figcaption></figcaption></figure>

### SDK Settings <a href="#sdksettings" id="sdksettings"></a>

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

Click ***Edit***.

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

#### Event Type

Denotes the specific event that will be used to trigger the tag.

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

#### Event Trigger

Specifies the condition that activates the tag. You can choose from the following options:

* **On Page Interactive** – Triggers the tag when the page becomes interactive (for example, when the DOM is fully parsed and ready for user interaction).
* **On Page Loaded** – Triggers the tag as soon as the page is loaded.
* **Custom Page Event** – Allows you to define a custom event that triggers the tag.

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

#### Secondary Trigger (JavaScript Variable)

Select this checkbox to enable a secondary trigger.&#x20;

Once enabled, two additional fields appear:

* **Variable Name** – Specify the JavaScript variable that acts as the secondary trigger.&#x20;
* **Wait Time** – Enter the in milliseconds that the system should wait before triggering the secondary action.

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

#### Cookie Domain

Determines how the cookie domain is set. Two options are available:

* **Auto** – The cookie domain is automatically detected at runtime.
* **Manual** – Allows you to manually specify the cookie domain.

**Note:** The cookie domain is automatically detected at runtime, so you don’t need to configure it manually.

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

#### **Enable Error Logging**

Provides options to capture and report SDK errors on the client side.

* **Report Client-side SDK Errors** – Select this checkbox to allow the Client SDK to report errors and exceptions to the Ingest Labs servers.
* **Enable Logging for Client-side SDK** – Select this checkbox to capture and log client-side SDK activities locally for troubleshooting.

<figure><img src="/files/5lINkBhdfy0Ugxk4zteu" alt=""><figcaption></figcaption></figure>

#### Trigger Delay

With Trigger Delay, you can set how long, in milliseconds, the system should wait after the page loads before firing the tag.

Note: Allows the page to render its content before the Tag Manager is fired, ensuring that all necessary elements are available.

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

#### Content Security Policy

This allows the client to add an additional CSP field so we can use the same csp field to add scripts to the website - Else, it will fail. Select this check box to enable or disable this option. If Enabled, the following option is available.

* Meta tag attribute name for Nonce: The Attribute name in meta tag where the Nonce value is configured in the website.

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

### SDK Setup <a href="#sdksetup" id="sdksetup"></a>

To set up Ingest Labs SDK, you must include the following script tag in index.html file of the website. Once the script is executed, the SDK is installed on the client website.

![sdksetup](https://ingest-lab.netlify.app/images/environmentsimages/sdksetup.png)

The following is the SDK URL that you must embed in the Staging environment of the client website. The first party domain is mp.ingestlabs.com and the Project ID in the sdk url is MPcl02kskp1eha030nh7hnn. In the IDL Setup, the idl.js file is Identity Link or First party identity script file. The following is the IDL setup url that you must embed in the Staging environment of the client website:

![viewstagingenvironment](https://ingest-lab.netlify.app/images/environmentsimages/stagingcode.png)

### Approved Domains and Collector URLs <a href="#approveddomainsandcollectorurls" id="approveddomainsandcollectorurls"></a>

The Approved Domains has the list of domains on which the SDK will run. The SDK will execute only these listed domains. This is to avoid spamming and to ensure that the SDK of one site is not used on another site.

The Script sdk url changes when the domain is verified based on the data collector configuration. This decides which collector url to pick based on what domain. Collector url is the url to which Server Side Tags and report calls are sent.

![datacollectordomain](https://ingest-lab.netlify.app/images/environmentsimages/datacollectordomain.png)

The Approved Domains & Collector URLs display the following information:

* **Domain** – Enter your website domain in this field.
* **Collector URL** – This displays the URL where the collected data is sent.

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

**Approved Data Collection Domains** – This section lists the domains that are authorized to collect data.

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

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2FaPxWPO5WR1FfRZGvqvP7%2FView%20Staging%20Environment.mp4?alt=media&token=7ff3c0c7-6f23-4313-bcc0-650128fcfd48>" %}


---

# 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/environments/view-staging-environment.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.
