# การเก็บข้อมูลจากเว็บไซต์

### เครื่องมือที่ใช้งานเก็บข้อมูลจากเว็บไซต์

สามารถคลิ๊กที่ลิ้งค์เครื่องมือต่างๆตามด้านล่างเพื่อศึกษาวิธีการใช้งาน

* [Google Tag Manager](/google-tag-manager.md)
* [Google Analytics](/google-analytics.md)
* [Facebook Pixel](/facebook-pixel.md)
* [Line Advertising Tag](/line-tag.md)

### การติดตั้งเครื่องมือ

การติดตั้งเครื่องมือสามารถทำได้หลายแบบ

* **ติดตั้งบนเว็บไซต์แบบรายเครื่องมือ**
  * เป็นการนำโค้ดของแต่ละเครื่องมือไปติดตั้งบนเว็บไซต์
* **ติดตั้งโดยใช้ Google Tag Manager (GTM)**
  * เป็นการใช้งาน GTM เพื่อติดตั้งโค้ดบนเว็บไซต์

{% hint style="warning" %}
การจัดทำ Web Tracking ต้องติดตั้ง GTM เพราะฉะนั้นเราแนะนำการติดตั้งด้วย GTM เพื่อป้องกันการซ้ำซ้อนของ Code
{% endhint %}

โดยวิธีการทำงานในการจัดทำจะเป็นตามแผนผังดังนี้

![](/files/-MioNpMPj6Yo9GxlpS4V)

**ขั้นตอนการ Track ข้อมูล/อีเวนท์**

1. ข้อมูลจากเว็บไซต์จะถูกส่งมายัง Google Tag Manager
2. ประมวลผล Event (Scroll Depth, Link Click, On Screen Duration)
3. ส่งข้อมูล Event ไปยัง Platform อื่นๆ


---

# 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://tracking-doc.coomb.co/master.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.
