# Easystore

## 事前準備

1. 必須先完成 [基礎追蹤 (必要)](/doc/dao-ru-an-zhuang/ji-chu-zhui-zong-bi-yao.md)
2. 下載 GTM Easystore 追蹤碼

{% file src="/files/A10EpfCd6fiI1UF6EsgW" %}

{% hint style="info" %}
Easystore 匯入安裝包含以下項目：

1. 瀏覽商品追蹤
2. 購物車追蹤
3. 購買追蹤
4. 搜尋關鍵字追蹤
5. 商品分享追蹤
   {% endhint %}

***

## Step 1. 進入 [GTM 後台](https://tagmanager.google.com/#/home)，開啟 「容器設定」

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

***

## Step 2. 點選 「匯入容器」

<figure><img src="/files/1PLgjAKj3e2hcBb8GOz1" alt=""><figcaption></figcaption></figure>

***

## Step 3. 匯入容器

1. 選取要匯入的檔案 ：選擇 [事前準備](#shi-qian-zhun-bei) 中下載到的 json 檔案。
2. 選擇工作區：選擇 「現有」 並點選您正在使用的工作區，一般沒特別設定則直接選擇 "Default Workspace"。
3. 選擇匯入選項： 選擇 「合併」 > 「覆寫有衝突的代碼、觸發條件和變數。」
4. 點擊 「確認」 完成匯入。

<figure><img src="/files/0XBazwRsiZXpdSQK4Il8" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
請先用 「預覽」 功能測試，確認 「Tags Fired」 是否有觸發成功
{% endhint %}

***

## Step 4. 設定 網站 ID

1. 至[ Instag 平台](https://pro.instag.ai/)進入 「帳戶 > 網站 > 資訊」，複製 「網站 ID」
2. 至 Google Tag Manager 將 「變數 variable > Instag Site ID」 值從 0 更換為您的網站 ID，接著按下 「儲存」

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

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

***

## Step 5. 提交變更

按下右上角 「提交」，再按下 「發布」 按鈕即可完成設置。

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

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


---

# 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/dao-ru-an-zhuang/kai-dian-ping-tai-she-zhi/easystore.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.
