# Cross-Domain Configuration

## Cross-Domain Configuration

> **SUCCESS**
>
> **What is Cross-Domain?**
>
> A feature to measure user behavior across multiple different domains as one continuous session.

### Benefits of This Feature

Since sessions are not interrupted even when moving between domains, you can accurately track and analyze a series of user behaviors.

### Common Use Cases

This feature is useful in the following scenarios where users move between multiple domains.

**E-commerce Site:** When the product detail page and checkout page have different domains

**Website:** When the product introduction page and inquiry form page have different domains

**（Example）** Article Landing Page (`kijiLP.com`) → Main Landing Page (`honLP.com`) → Payment Page (`pay.com`)

## Prerequisites (Important)

Place the same Ptengine basic tag on all pages

Domain registration for pages you want to measure is complete

Cross-domain configuration is turned ON

### Configuration Method

Automatic configuration is most recommended. Other methods include full manual configuration, semi-manual configuration, and API integration. For more details, please see this article.

Please proceed with automatic configuration in the following steps ①→②→③.

When you open the "Cross-Domain Configuration" menu, slide the switch to ON. When the message "Automatic cross-domain configuration has been completed" appears, the configuration is complete. Select a parameter identifier as needed (by default, it is set to #).

### **What is a Parameter Identifier?**

When you enable cross-domain configuration, the Ptengine cross-domain parameter "#\_pt\_link=\*\*\*\*" will always be added to the end of the transitioned URL. The symbol used to identify this parameter is called a parameter identifier, and it is set to "#" by default. Change to "?" or "&" if the measurement site restricts the identifier.

**When "#" is selected:**

[www.domain.com/path/#\_pt\_link=\*\*\*\*](/en/insight/setting/cross-domain.md)

**When "?" or "&" is selected:**

(1) [www.domain.com/path/?\_pt\_link=\*\*\*\*](/en/insight/setting/cross-domain.md)

(2) [www.domain.com/path/?campiagn=test&\_pt\_link=\*\*\*\*](/en/insight/setting/cross-domain.md)

If "?" is already used in the URL, it will be connected with "&" as shown in (2) above.

### Important Notes

This setting applies to both Ptengine Insight and Experience.

Please note that if the configuration is not turned ON, cross-domain measurement will not be applied in Experience.


---

# 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://helps.ptengine.com/en/insight/setting/cross-domain.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.
