透過集合功能整理內容
你可以依據偏好儲存及分類內容。
避免干擾性的插頁式廣告和對話方塊
使用干擾性插頁式廣告和對話方塊的目的通常是為了宣傳,但這類網頁元素會妨礙使用者瀏覽內容。插頁式廣告會覆蓋住整個網頁,而對話方塊只會覆蓋網頁的一部分,以重疊的形式顯示,有時也會讓底下的內容變得難以瀏覽。
網站常會基於各種原因而需要顯示對話方塊;然而,使用干擾性插頁式廣告阻礙使用者瀏覽可能會讓使用者感到困擾,破壞他們對網站的信任度。
干擾性的對話方塊和插頁式廣告會讓 Google 和其他搜尋引擎難以解讀您的內容,進而導致搜尋成效不佳。同樣地,如果使用者覺得您的網站難以使用,很可能就不想再造訪您的網站,無論是直接造訪或是透過搜尋引擎。
建立非干擾性對話方塊
建立不會造成干擾的對話方塊,意味著使用者在瀏覽您的內容時不會遭到對話方塊阻礙。這項做法適用於各種宣傳對話方塊,包括應用程式安裝提示。遵循以下這些最佳做法有助於網站提供優質的使用者體驗,同時也能讓 Google 搜尋瞭解您網站的內容和結構。
以橫幅取代插頁式廣告
不要使用占據整個網頁的插頁式廣告,改以只占用局部畫面的橫幅廣告來吸引使用者注意。橫幅能讓使用者和搜尋引擎在到達網頁時立即取得相關內容。
您能夠以多種方式來導入這類橫幅。舉例來說,如果要顯示應用程式安裝橫幅,可以使用瀏覽器支援的橫幅廣告,例如 Safari 的智慧型應用程式橫幅廣告或 Chrome 的應用程式內安裝體驗。另一個方法是建立 HTML 橫幅,這與一般小型廣告類似,可連結至正確的應用程式商店,讓使用者下載應用程式。如有需要,您可以將這些小型容器重複使用於其他通知,例如電子報訂閱提示。
使用常見的程式庫
許多 CMS 都會提供外掛程式,可用來建立適用於常見用途的標準對話方塊和插頁式廣告,例如電子報訂閱提示。舉例來說,如果您使用 WordPress,可以搜尋「電子報訂閱 Wordpress」。由於外掛程式開發人員可以大規模部署改善項目,因此使用這類外掛程式將有助於 Google、其他搜尋引擎作業,對整體網際網路來說也有助益。
避免常見錯誤
除非是法律規定,否則在設計對話方塊或插頁式廣告時,請避免下列常見錯誤,以利 Google 搜尋能順利檢索及解讀您的內容:
- 請勿以插頁式廣告遮蓋整個網頁。
- 徵求使用者同意或要求提供資訊時,請勿將使用者重新導向至其他網頁。
依法顯示的插頁式內容
部分網站會因為發布的內容類型而需要顯示插頁式內容。例如,賭場網站可能需要顯示年齡管制關卡,要求使用者先提供年齡才能瀏覽內容。
依法規定的插頁式內容不需遵守本文所述的規範;不過,還是建議網站盡可能遵循下列最佳做法:
-
確認內容與插頁式廣告重疊。這麼做可確保 Google 至少能夠檢索部分內容,並有機會顯示在搜尋結果中。
-
請勿為了收集同意聲明或提供資料,而將連入 HTTP 要求重新導向至其他網頁。如果將所有網址重新導向至單一網頁,會導致只有重新導向後的網頁能出現在搜尋結果中,因為 Googlebot 只會擷取該網頁。
對於必須通過年齡管制機制才能觀看的成人使用者內容,建議讓 Googlebot 在不觸發這個機制的情況下檢索您的內容,方法是驗證 Googlebot 要求,並在沒有年齡管制的機制下提供內容。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-04 (世界標準時間)。
[null,null,["上次更新時間:2025-08-04 (世界標準時間)。"],[[["\u003cp\u003eIntrusive interstitials and dialogs negatively impact user experience and search engine understanding of your website's content.\u003c/p\u003e\n"],["\u003cp\u003ePrioritize unintrusive dialogs and utilize banners instead of full-page interstitials for promotions and notifications to ensure content accessibility.\u003c/p\u003e\n"],["\u003cp\u003eLeverage common libraries or plugins for creating standard dialogs and interstitials, as these often incorporate best practices and scalability.\u003c/p\u003e\n"],["\u003cp\u003eAvoid obscuring the entire page with interstitials or redirecting users to separate pages for consent, unless legally required.\u003c/p\u003e\n"],["\u003cp\u003eFor mandatory interstitials, ensure content is still crawlable by search engines and avoid redirecting all incoming requests to a single page.\u003c/p\u003e\n"]]],["The core message is to avoid intrusive interstitials and dialogs, as they obstruct content, frustrate users, and harm search performance. Instead, use unintrusive banners for promotional purposes, including app install prompts. Leverage common CMS plugins to deploy dialogs efficiently. Avoid obscuring the entire page or redirecting users for consent. For mandatory interstitials, ensure the content is overlaid and avoid redirecting all URLs. For age-restricted content, allow Googlebot to crawl without triggering the age gate.\n"],null,["# Interstitials and dialogs | Google Search Central\n\nAvoid intrusive interstitials and dialogs\n=========================================\n\n\nIntrusive\n[interstitials](https://en.wikipedia.org/wiki/Interstitial_webpage)\nand dialogs are page elements that obstruct users' view of the content, usually for\npromotional purposes. Interstitials are overlays on the whole page and dialogs are overlays\nonly on a part of the page, sometimes also obfuscating the underlying content.\n\n\nWebsites often need to show dialogs for various reasons; however, interrupting users with\nintrusive interstitials may frustrate them and erode their trust in your website.\n\n\nIntrusive dialogs and interstitials make it hard for Google and other search engines to\nunderstand your content, which may lead to poor search performance. Equally, if users find\nyour site hard to use, they are unlikely to want to visit those websites again, including\nthrough search engines.\n\nCreate unintrusive dialogs\n--------------------------\n\n\nCreating unintrusive dialogs means that users can access your content without being\ninterrupted by a dialog. This applies to all kinds of promotional dialogs, including app\ninstall prompts. Following these best practices will help your users have a good experience on\nyour site, in addition to helping Google Search understand the content and structure of your\nsite.\n\n### Use banners instead of interstitials\n\n\nInstead of full page interstitials, use banners that take up only a small fraction of the\nscreen to grab your users' attention. Banners ensure that users and search\nengines can get to the content as soon as they land on the page.\n\n\nThese can be implemented in various ways. For example, for app install banners, you can use a\nbrowser-supported banner, such as\n[Smart App Banners](https://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html)\nfor Safari or\n[in-app install experience](/web/fundamentals/app-install-banners/native)\nfor Chrome. Another option is to create an HTML banner, similar to a typical small advertisement,\nthat links to the correct app store for download. You can reuse these small containers for other\nkinds of notifications, such as newsletter sign-up prompts.\n\n### Use common libraries\n\n\nMany CMSes have plugins that create standard dialogs and interstitials for the most common use\ncases, such as newsletter sign-up prompts. For example, if you are using WordPress, search for\n\"newsletter signup wordpress\". Using such plugins can be helpful for Google, other search\nengines, and the internet in general, as the plugin developers can deploy improvements at\nscale.\n\n### Avoid common mistakes\n\n\nUnless they're legally mandatory, avoid the following common mistakes when designing a dialog\nor interstitial to help Google Search crawl and understand your content:\n\n- Don't obscure the entire page with interstitials.\n- Don't redirect the user to a separate page for their consent or input.\n\nMandatory interstitials\n-----------------------\n\n\nCertain sites are required to show an interstitial due to the kind of content they are\npublishing. For example, a casino site may need to show an age gate, which is a type of\ninterstitial where the user must provide their age before accessing the content.\n\n\nMandatory interstitials are exempted from the guidelines discussed in this document; however,\nif possible, we recommend that sites follow these best practices:\n\n- Ensure that the content is overlaid with the interstitial. This will ensure that Google can still at least index some of the content and potentially show it in search results.\n- Don't redirect the incoming HTTP requests to a different page for collecting consent or providing data. Redirecting all URLs to a single page will remove all but that one page from search results, as Googlebot can only fetch that page.\n\n\nFor content behind a mandatory age gate for adult users, we recommend allowing Googlebot\nto crawl your content without triggering the age gate. You can do this by\n[verifying Googlebot requests](/search/docs/crawling-indexing/verifying-googlebot)\nand serving the content without age gate."]]