> 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/biao-dan-zhui-zong.md).

# 表單追蹤

{% 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', 'form',{
<strong>  'id': '<a data-footnote-ref href="#user-content-fn-1">string</a>',
</strong>  'name': '<a data-footnote-ref href="#user-content-fn-2">string</a>',
  'type': '<a data-footnote-ref href="#user-content-fn-3">string</a>',
  'price': '<a data-footnote-ref href="#user-content-fn-4">string</a>',
  'user':{
    'type': '<a data-footnote-ref href="#user-content-fn-5">string</a>',
    'id': '<a data-footnote-ref href="#user-content-fn-6">string</a>',
    'email': '<a data-footnote-ref href="#user-content-fn-7">string</a>',
    'phone': '<a data-footnote-ref href="#user-content-fn-8">string</a>'
  }
});
</code></pre>

***

## 參數說明

<table><thead><tr><th width="82.33333333333331" data-type="checkbox">必要</th><th width="173">參數</th><th>說明</th></tr></thead><tbody><tr><td>true</td><td>id</td><td><p>string</p><p>表單 ID，依據每一次不同表單設置不同 ID。</p></td></tr><tr><td>true</td><td>name</td><td><p>string</p><p>表單名稱，依據每一次不同表單設置不同名稱。</p></td></tr><tr><td>true</td><td>type</td><td><p>string</p><p>表單類型，為您的不同類型表單，自由設置類型區隔，例如：付費活動、免費活動、訂閱電子報..等。</p></td></tr><tr><td>false</td><td>price</td><td><p>string</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]: 表單 ID，依據每一次不同表單設置不同 ID

[^2]: 表單名稱，依據每一次不同表單設置不同名稱

[^3]: 表單類型，為您的不同類型表單，自由設置類型區隔，例如：付費活動、免費活動、訂閱電子報..等。

[^4]: 表單價值，設置此表單金額或價值，可於受眾篩選條件選擇

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

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

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

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