# 點擊追蹤

{% hint style="warning" %}
需完成 [基礎追蹤 (必要)](/doc/cheng-shi-ma-zi-ding-an-zhuang/ji-chu-zhui-zong-bi-yao.md)
{% endhint %}

## 程式碼

當點擊時，透過 Javascript 填入「點擊」資料後發送。

<pre class="language-javascript"><code class="lang-javascript">itg('event', 'action',{
  'type': 'click',
  'category': '<a data-footnote-ref href="#user-content-fn-1">string</a>',
  'label': '<a data-footnote-ref href="#user-content-fn-2">string</a>',
  'value': <a data-footnote-ref href="#user-content-fn-3">int</a>
  'user':{
    'type': '<a data-footnote-ref href="#user-content-fn-4">string</a>',
    'id': '<a data-footnote-ref href="#user-content-fn-5">string</a>',
    'email': '<a data-footnote-ref href="#user-content-fn-6">string</a>',
    'phone': '<a data-footnote-ref href="#user-content-fn-7">string</a>'
  }
});
</code></pre>

***

## 參數說明

<table><thead><tr><th width="91.33333333333331" data-type="checkbox">必要</th><th width="204">參數</th><th>說明</th></tr></thead><tbody><tr><td>true</td><td>type</td><td><p>string</p><p>點擊行為，「點擊」追蹤預設為「click」無須更改。</p></td></tr><tr><td>true</td><td>category</td><td><p>string</p><p>點擊分類，依據點擊用途分類給予代號，將用於「受眾篩選」之條件。</p></td></tr><tr><td>true</td><td>label</td><td><p>string</p><p>點擊標籤，依據每次點擊紀錄標的物，將用於「受眾篩選」之條件。</p></td></tr><tr><td>true</td><td>value</td><td><p>int</p><p>點擊價值，給予該次點擊可衡量之價值，將用於「受眾篩選」之條件。</p></td></tr><tr><td>false</td><td>user type</td><td><p>string</p><p>使用者來源，例如：own, line, facebook, google</p><ul><li>自有會員：own</li><li>Line 來源：line</li><li>Facebook 來源：facebook</li><li>Google 來源：google</li></ul></td></tr><tr><td>false</td><td>user id</td><td><p>string</p><p>使用者 id，串聯 User ID 資料，讓「受眾篩選」的「整合資訊」條件更加精準。</p></td></tr><tr><td>false</td><td>user email</td><td><p>string</p><p>使用者 email，將串聯 User Email 資料，讓「受眾篩選」的「整合資訊」條件更加精準。</p></td></tr><tr><td>false</td><td>user phone</td><td><p>string</p><p>使用者 phone，將串聯 User Phone 資料，讓「受眾篩選」的「整合資訊」條件更加精準。</p></td></tr></tbody></table>

[^1]: 點擊分類，依據點擊用途分類給予代號，將用於「受眾篩選」之條件。

[^2]: 點擊標籤，依據每次點擊紀錄標的物，將用於「受眾篩選」之條件。

[^3]: 點擊價值，給予該次點擊可衡量之價值，將用於「受眾篩選」之條件。

[^4]: 使用者 來源，例如：own, line, facebook, google

[^5]: 使用者 id，串聯 User ID 資料，讓「受眾篩選」的「整合資訊」條件更加精準。

[^6]: 使用者 email，將串聯 User Email 資料，讓「受眾篩選」的「整合資訊」條件更加精準。

[^7]: 使用者 phone，將串聯 User Phone 資料，讓「受眾篩選」的「整合資訊」條件更加精準。


---

# 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://instag.gitbook.io/doc/cheng-shi-ma-zi-ding-an-zhuang/dian-ji-zhui-zong.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.
