# Data Collection

In this section, we will explain how Ptengine collects data and what data Ptengine gathers.\
We will also address data security concerns.

### Ptengine's Data Collection <a href="#ptengine-de-shu-ju-cai-ji" id="ptengine-de-shu-ju-cai-ji"></a>

Ptengine's data collection is implemented through a simple code snippet. For details, refer to the basic code setup guide. The mechanism can be understood as shown in the following diagram:![Alt text](https://help-ptengine-com-vitepress.oss-cn-guangzhou.aliyuncs.com/Introduction/1-3/cai-ji.png)

### Ptengine's Data Dimensions <a href="#ptengine-de-shu-ju-wei-du" id="ptengine-de-shu-ju-wei-du"></a>

Ptengine's data collection can be broadly divided into three dimensions:

* Session-level data: Metrics include code-based events and visual events.
* Page-level data: Ptengine parses page packets to obtain user device information, geographic information, and more.
* User-level data: Includes user interaction behavior on the page, cookies, device ID, and performance data.

### Ptengine's Data Security <a href="#ptengine-de-shu-ju-an-quan" id="ptengine-de-shu-ju-an-quan"></a>

* Data theft prevention: Our dedicated operations team ensures that our data is not stolen or accessed externally.
* Data storage: Ptengine uses a distributed database to ensure data stability.
* Data leak prevention: We ensure that each customer's information is never disclosed to any third party.


---

# 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/getting-started/quick/data-collection.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.
