> For the complete documentation index, see [llms.txt](https://instag.gitbook.io/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://instag.gitbook.io/doc/cheng-shi-ma-zi-ding-an-zhuang/zheng-he-zhui-zong.md).

# 整合追蹤

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

## 程式碼

將 user 資料帶入後，在您想追蹤的每個網頁上透過 Javascript 發送。

<pre class="language-javascript"><code class="lang-javascript">&#x3C;script>
itg('anchor', 'user',{
  'type':'<a data-footnote-ref href="#user-content-fn-1">string</a>',
  'id':'<a data-footnote-ref href="#user-content-fn-2">string</a>',
  'email':'<a data-footnote-ref href="#user-content-fn-3">string</a>',
  'phone': '<a data-footnote-ref href="#user-content-fn-4">string</a>'
});
&#x3C;/script>
</code></pre>

***

## 參數說明

<table><thead><tr><th width="82.33333333333331" data-type="checkbox">必要</th><th width="165">參數</th><th>說明</th></tr></thead><tbody><tr><td>true</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>true</td><td>user id</td><td><p>string</p><p>使用者 id，串聯多維資料，讓「受眾篩選」的「整合 ID」條件篩選更加精準。</p></td></tr><tr><td>true</td><td>user email</td><td><p>string</p><p>使用者 email，串聯多維資料，讓「受眾篩選」的「整合 ID」條件篩選更加精準。</p></td></tr><tr><td>false</td><td>user phone</td><td><p>string</p><p>使用者 phone，串聯多維資料，讓「受眾篩選」的「整合 ID」條件篩選更加精準。</p></td></tr></tbody></table>

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

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

[^3]: 使用者 email，串聯多維資料，讓「受眾篩選」的「整合 ID」條件篩選更加精準。

[^4]: 使用者 phone，串聯多維資料，讓「受眾篩選」的「整合 ID」條件篩選更加精準。
