> 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/fan-li-91app-zhu-ce.md).

# 範例：91APP 註冊

Google Tag Manager 安裝

### 註冊範例

<figure><img src="https://2075385674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA8vmX591TX7ccV7n1Qcw%2Fuploads%2Fwz2P4rwXgXcNIss209M2%2Fimage.png?alt=media&amp;token=6df73c67-3d42-492d-87ef-9db06957a5d0" alt=""><figcaption><p>91App 登入/註冊頁</p></figcaption></figure>

### 新增觸發事件

<figure><img src="https://2075385674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA8vmX591TX7ccV7n1Qcw%2Fuploads%2FMXHIHY1kmVqRN1A9s79A%2Fimage.png?alt=media&amp;token=1ab5a496-efaf-4fcc-a9c4-1a2bf5c69819" alt=""><figcaption><p>新增觸發事件</p></figcaption></figure>

<figure><img src="https://2075385674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA8vmX591TX7ccV7n1Qcw%2Fuploads%2FsARoZyuCL1vDvuYxCG4c%2Fimage.png?alt=media&amp;token=4c6e88ba-3f1b-4b21-80b9-25bb6a1f6744" alt=""><figcaption><p>觸發條件設定</p></figcaption></figure>

* 觸發名稱：\[91app] Login (可更改)
* 觸發條件類型：點擊 - 所有元素
* 啟動時機：部分點擊
* 觸發條件：「Click Classes」 包含 「button\_\_Button-sc-fjm4ds-0」

### 新增代碼

<figure><img src="https://2075385674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA8vmX591TX7ccV7n1Qcw%2Fuploads%2FUfHMuXUYJnlpTHtIcitW%2Fimage.png?alt=media&amp;token=07663b9e-0534-45de-8bfe-93b048cb3503" alt=""><figcaption><p>建立代碼</p></figcaption></figure>

<figure><img src="https://2075385674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA8vmX591TX7ccV7n1Qcw%2Fuploads%2FLHkEQlyI4rj5wcoh4ojz%2Fimage.png?alt=media&amp;token=d594679a-fc47-4ef9-a638-90a92d0fbe6d" alt=""><figcaption><p>註冊表單追蹤</p></figcaption></figure>

* 代碼名稱：\[91app] Login
* 代碼類型：自訂 HTML
* HTML：複製下面內容程式碼貼上

```javascript
<script>
var url  = document.URL;
var re   = /Login\/Index/i;

var data = {
  'mobile':     document.getElementsByClassName('TextInput-sc-1gntv90')[0].value
}

if(url.match(re) && data.mobile != null){
    itg('event', 'form',{
        'id':   'register',             
        'name': '會員註冊',             
        'type': '會員',
        'price': 0,
        'user':{
          'type':'own',
          'id': '',
          'email': '',
          'phone': data.mobile
        }                       
    });
}
</script>
```

* 觸發條件：\[91app] Login（ [#xin-zeng-chu-fa-shi-jian](#xin-zeng-chu-fa-shi-jian "mention")）

按下右上角「儲存」按鈕後，點擊右上角「提交」並且「發布」即可生效。

#### 提醒

* 請先用「預覽」功能測試，確認「Tags Fired」是否有觸發成功


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://instag.gitbook.io/doc/cheng-shi-ma-zi-ding-an-zhuang/biao-dan-zhui-zong/fan-li-91app-zhu-ce.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
