搜尋引擎最佳化(SEO)

搜尋引擎最佳化(通常簡稱為 SEO)是一種數位行銷策略,用於提升網站在搜尋引擎結果(例如 Google)中的可見度和排名。它涉及最佳化網站上的各種元素,包括內容、社群分享、網址、圖片和頁面速度。

備註

  • Several modules are provided to help build the website’s content, such as eCommerce, Blog, eLearning, and Forum.

  • All provided themes are built with the Bootstrap CSS framework to ensure responsive layouts across desktop, tablet, or mobile, which can support SEO.

內容最佳化

若要最佳化網頁的 SEO,請存取該頁面,然後前往網站 ‣ 網站 ‣ 最佳化 SEO。

Search Engine Optimization

備註

Changing the title of a blog post or the name of a product automatically updates the link to the related webpage. The old link still functions as a 301 redirect is created, maintaining the SEO.

小訣竅

  • Click Fill with AI to automatically generate a meta title, a description, and get keyword suggestions.

  • Remove incorrect URLs from the Broken Link field and select valid ones to prevent errors.

Keywords and meta tags

SEO 中有兩種類型的關鍵字,它們的用途不同。

文內關鍵字

文內關鍵字會自然地出現在頁面的可見內容(標題、標頭和正文)中,有助於搜尋引擎判斷頁面的主題和相關性。這些關鍵字對排名有實際影響。它們無法在最佳化 SEO彈出視窗中進行編輯。

重要

強烈建議每個頁面僅使用一個 H1 標題,以利於 SEO。

中繼標籤和中繼關鍵字

Meta tags are HTML elements that provide information about a webpage to search engines and website visitors. They play a crucial role in SEO by helping search engines understand the content and context of a webpage and attract visitors with appealing content. They can be edited in the optimize SEO pop-up. There are two types of meta tags:

  • 標題標籤指定網頁的標題,並在搜尋引擎結果中顯示為可點擊的連結。標題應簡潔、具描述性且與頁面內容相關。您可以更新網頁的標題標籤,或保持空白以使用基於頁面內容的預設值。

  • Description tags summarize the webpage’s content, often displayed in search engine results below the title. They are used to encourage the user to visit the page. Update the description tag of the webpage, or keep it empty to use the default description based on the page’s content.

備註

預覽卡片顯示標題和描述標籤在搜尋結果中的呈現方式。它還包含您頁面的網址。

**中繼關鍵字**會放在隱藏的 HTML 標籤「<meta name=」keywords」>」中。此標籤曾用於描述頁面的主題,但現在主要搜尋引擎已忽略它,對 SEO 的影響很小或沒有影響。若要編輯關鍵字,請在此欄位中輸入您認為必要的關鍵字,然後按一下加入,以查看它們在內容的不同層級(H1、H2、頁面標題、頁面說明、頁面內容)中如何使用,以及 Google 中的相關搜尋。該工具也會建議相關的關鍵字。

圖片

圖片大小對頁面速度有顯著影響,而頁面速度是搜尋引擎最佳化 SEO 排名的重要標準。

小訣竅

使用Google Page Speed或Pingdom Website Speed Test比較您網站的排名。

Odoo automatically compresses uploaded images and converts them to Webp. With this file format, photos are smaller, which increases the page loading speed and, therefore, gives a better ranking in SEO. All images used in Odoo official themes are also compressed by default.

備註

Third-party themes may not compress images efficiently.

To modify an image from a webpage, select the image, click Edit, then go to the Customize tab, and adapt the Format in the Image section.

重要

替代文字標籤用於提供圖片顯示內容的背景資訊,告知搜尋引擎爬蟲並讓它們能夠正確索引圖片。從 SEO 角度來看,在描述欄位中加入替代文字關鍵字至關重要。此描述會加入到圖片的 HTML 程式碼中,並在圖片無法顯示時顯示。

社群分享圖片

When you share a page on social media, the website logo is selected by default. Search the Unsplash image library or upload any other image by clicking the (upload) button.

小訣竅

To set a default social share image, go to Website ‣ Configuration ‣ Settings. Under the Tracking & SEO section, enable Default Social Share Image.

備註

社群預覽卡片顯示頁面資訊在分享時的呈現方式。

索引

網站索引是搜尋引擎(例如 Google)探索、分析並將網站內容資訊儲存在其資料庫中的過程。稱為爬蟲或蜘蛛的搜尋引擎機器人會造訪網頁並跟隨連結來收集資料,包括文字、圖片和其他媒體。索引的目的是使網站的內容可供使用者搜尋和探索。如果沒有被索引,無論網站或該網站上的特定頁面有多相關或設計得多好,都不會出現在搜尋引擎結果中。索引是SEO(搜尋引擎最佳化)的基本步驟,是網站能見度和自然流量的基礎。

備註

**當您首次在 Odoo 上建立網站時,它不會直接出現在搜尋引擎結果中。**搜尋引擎需要時間來爬取和索引它,這可能需要幾天到幾週的時間。對於 Google,您可以使用Search Console並請求為特定網址建立索引,但這並不能保證更快的結果。如果您有現有網站並正在遷移,則在該時間範圍內,您以前的網站可能仍會顯示,而不是新網站。

將現有網站遷移到 Odoo 時的 SEO 影響

In most cases, migrating to Odoo will not negatively impact the website’s SEO. While no platform can guarantee that rankings will remain unchanged, follow these best practices to significantly reduce the risk.

  • Keep the existing content.

  • 實施從舊網址到新網址的重新導向。

  • 使用Google 搜尋控制台監控流量和索引狀態,確保一切正常運作。

By doing this, search engines reindex the site and maintain its visibility in search results.

備註

在最初幾天內流量下降是正常現象。

防止頁面被索引

要有效防止頁面出現在搜尋引擎結果中,請使用以下其中一種方法:

  • **noindex 標籤:**存取頁面的屬性,並將已索引開關切換為關閉。

    備註

    此選項目前尚不適用於動態頁面。

  • **404 或 403:**將頁面配置為傳回 404(找不到)或 403(禁止存取)HTTP 狀態碼。這些代碼會向搜尋引擎發出訊號,表示頁面不存在或無法存取,最終導致其從索引中移除。

  • **Google Search Console:**使用 Google Search Console 請求從 Google 索引中移除特定網址。

防止網站被索引

若要防止網站出現在搜尋引擎結果中,請前往配置 ‣ 設定,然後在網站資訊區段的網域欄位中加入隨機值。這樣做會自動在頁面原始碼中插入以下標籤:

<meta name="robots" content="noindex"/>

此標籤會指示搜尋引擎不要索引該網站。套用變更後,搜尋引擎可能需要數天或數週的時間來更新其結果並移除該網站。

Example

這可用於防止測試資料庫的網站出現在搜尋結果中。

網站地圖

網站地圖會向搜尋引擎檢索器指出網站頁面及其相互關係。Odoo 會產生包含所有網址的/sitemap.xml檔案。基於效能考量,此檔案會被快取並每 12 小時更新一次。

備註

如果您的網站有大量頁面,Odoo 會自動建立網站地圖索引檔案,遵循 sitemaps.org 協定,將網站地圖網址分組為每個檔案 45000 個區塊。

每個網站地圖記項都有三個自動計算的屬性:

  • <loc>:頁面的網址。

  • <lastmod>:資源的最後修改日期,根據相關物件自動計算。對於與產品相關的頁面,這可能是產品或頁面的最後修改日期。

  • <priority>:模組可能會根據其內容實作自己的優先順序演算法(例如,論壇可能會根據特定貼文的投票數來分配優先順序)。靜態頁面的優先順序由其優先順序欄位定義,該欄位已標準化(預設為 16)。

小訣竅

若要防止頁面出現在網站地圖中,請前往網站 ‣ 屬性,並關閉已索引功能。

關閉「已索引」欄位

robots.txt

robots.txt檔案指示搜尋引擎爬蟲可以存取網站的哪些部分。其主要目的是:

  • **防止網站超載:**透過引導爬蟲遠離某些區段,robots.txt 有助於管理伺服器負載。

  • **控制資源和詳細描述的存取:**它可以防止爬蟲存取媒體檔案(圖片、影片)、CSS 樣式表和 JavaScript 檔案,以及讀取特定頁面的內容(文字)。

搜尋引擎在索引您的網站時,會先查看 robots.txt 檔案。Odoo 會自動建立一個可在mydatabase.odoo.com/robots.txt取得的 robots.txt 檔案。

備註

Reputable bots adhere to robots.txt; others may require blocking via Cloudflare on your custom domain.

編輯 robots.txt

透過編輯 robots.txt 檔案,您可以控制搜尋引擎爬蟲可以存取哪些網站頁面。要在檔案中加入自訂指令,請前往網站 ‣ 配置 ‣ 設定,向下捲動到SEO區段,然後按一下編輯 robots.txt。

Example

如果您不希望機器人爬取網站的 /about-us 頁面,可以編輯 robots.txt 檔案並加入 Disallow: /about-us。

重要

雖然 robots.txt 可以防止內容被爬取,但它無法保證頁面不會被索引。如果其他已爬取的頁面有連結指向該頁面,該頁面仍可能出現在搜尋結果中(透過「參照」建立索引)。Google 通常不建議使用 robots.txt 來封鎖您希望完全排除在搜尋結果之外的網頁。

進階功能,幫你蒐集有用資訊

結構化資料標記

結構化資料標記用於在搜尋引擎結果中產生豐富的摘要資訊。這是網站向搜尋引擎檢索器傳送結構化資料的方式,幫助它們理解您的內容並建立精美的搜尋結果。

預設情況下,Google 支援多種內容類型的豐富摘要,包括評論、人物、產品、企業、活動和組織。

微資料是一組隨 HTML5 引入的標籤,可幫助搜尋引擎更好地理解您的內容並以相關方式顯示。Odoo 實作 schema.org規範中定義的微資料,適用於活動、電子商務產品、論壇貼文和聯絡地址。這使您的產品頁面可以在 Google 中使用額外資訊(如產品價格和評分)顯示:

搜尋引擎結果中的摘要

Hreflang HTML 標籤

Odoo 會自動在您網站的多語言頁面程式碼中加入 hreflang 和 x-default 標籤。這些 HTML 屬性對於向搜尋引擎告知特定頁面的語言和地理目標定位至關重要。

其他資料

翻譯