> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.easystore.co/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 【顧客經營】設置官網限定會員瀏覽

![](https://storage.crisp.chat/users/helpdesk/website/-/b/3/4/7/b34797d9594d3000/6ygp55so5ywo6yoo5pa55qgi_11a8vwc.png)

透過將官網設為「限定會員瀏覽」，你可以讓只有登入會員的顧客才能查看網站內容，進一步提升會員的專屬感，同時也有助於引導訪客註冊成為會員。

| EasyStore 本不支援客製化原始碼服務，但我們非常了解商家需求，特此提供修改原始碼路徑。然而，編輯原始碼會更改原本的架構，可能導致代碼不相容或影響到其他功能，本站概不負責。提醒商家在進行任何代碼修改之前，務必慎重考慮及深入評估。

---

# ${color}[#b92d2d](目錄：)

### [▶️設定步驟](#3-6kit5a6a5q2l6amf)

### [▶️限制註冊設定（僅支援成長版與全能版）](#3-6zmq5yi26ki75yak6kit5a6a77yi5yof5psv5o05oiq6zw354mi6iih5ywo6io954mi77yj)

### [▶️注意事項·](#3-8jsoeazqoaejs6imghq)

---

# 設定步驟

1. 前往銷售管道 > 品牌官網 > 佈景主題 > 進入「編輯原始碼」> theme.liquid 文件

2. 複製以下代碼

```
{% if customer == null and template != 'customers' and preview == false %}
<script>
window.location.href = "/account/login?return_url=" + encodeURIComponent(window.location.pathname + window.location.search);
</script>
{% endif %}
```

3. 粘貼在 <head> 與 <head> 之間 （你可直接貼在 <head> 下方）


![](https://storage.crisp.chat/users/helpdesk/website/-/b/3/4/7/b34797d9594d3000/image_1p6plmf.png)

4. 點擊儲存，完成！

5. 設置後，無論顧客前往任何官網的任何頁面（包括聯繫我們、隱私條款等等頁面），都需要先登入才可以瀏覽

![](https://storage.crisp.chat/users/helpdesk/website/-/b/3/4/7/b34797d9594d3000/image_534sna.png)

---

# 限制註冊設定（僅支援成長版與全能版）

* 若你希望商店僅開放給特定會員，打造會員專屬或邀請制的購物體驗，你可配合以下文章的功能：

### [【顧客經營】限制註冊設定](https://support.easystore.co/zh-tw/article/44cq5y2z5bch5o6o5ye644cr44cq6agn5a6i57at54ef44cr6zmq5yi26ki75yak6kit5a6a-fckf9k/)


---

# 💡注意事項

* 需要注意的是，當官網設定為「限定會員瀏覽」後，搜尋引擎（如 Google）將無法瀏覽網站內容，可能會影響網站在搜尋結果中的曝光與 SEO 表現。
因此，建議商家在啟用此設定前，先評估官網的經營目的與行銷策略，確認是否符合目前的營運需求。

* 更換佈景主題需要重新置入代碼


