> For the complete documentation index, see [llms.txt](https://docs.besparks.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.besparks.co/besparks-crm-gong-neng-mo-zu-shuo-ming/popup/popup-before-setup.md).

# 彈窗安裝前置作業

將彈窗安裝到官網前，請先確認您的官網環境：

* GTM（Google Tag Management) 已建立您的官網帳號
* 您的SHOPLINE電商後台「網店行銷及追蹤」 > 「追蹤設定」已存在「Google 代碼管理工具」（如下圖）

<figure><img src="/files/xWAMdcX9iUdA0RMpeTIG" alt=""><figcaption></figcaption></figure>

若您已完成上述設定，請前往此頁👉  [**彈窗安裝到官網上**](/besparks-crm-gong-neng-mo-zu-shuo-ming/popup/popup-setup.md)

{% hint style="info" %}
若您尚未完成上述兩項設定，請參考下列步驟準備前置環境：

1. 需先設定SHOPLINE的GTM，[**點此可參照詳細步驟檢查安裝**](https://support.shoplineapp.com/hc/zh-tw/articles/205276289-Google-%E4%BB%A3%E7%A2%BC%E7%AE%A1%E7%90%86%E5%B7%A5%E5%85%B7-GTM-%E5%AE%89%E8%A3%9D%E6%96%B9%E5%BC%8F)
2. 完成後，請看文章「[**彈窗安裝到官網上**](/besparks-crm-gong-neng-mo-zu-shuo-ming/popup/popup-setup.md)」
   {% endhint %}


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.besparks.co/besparks-crm-gong-neng-mo-zu-shuo-ming/popup/popup-before-setup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
