SEO全球获客

Search Engine Optimization, often abbreviated as SEO, is a digital marketing strategy to improve a website’s visibility and ranking in search engine results (e.g., in Google). It involves optimizing various elements on your website, including its content, social sharing, URLs, images, and page speed.

注解

  • Odoo 提供多种功能来帮助您完成SEO获客并提升销量。比如:电商门户, 博客文章, 在线课程, and 用户论坛.

  • 所有的Odoo 主题 基于标准的 SCSS/CSS 框架, 使用 Bootstrap 等最新技术来渲染界面,可以根据不同的设备自动适应并优化,包括: 桌面电脑、平板、手机、小程序等。 这些都极大的提升了 SEO 效果。

内容优化

如需完成网页的 SEO,可以从此菜单中操作:门户网站 ‣ 网站 ‣ SEO优化

优化SEO

注解

If you change the title of a blog post or the name of a product, the link to the related webpage is automatically updated. The old link still functions as Odoo creates a 301 redirect, maintaining the SEO.

Keywords and meta tags

There are two types of keywords in SEO, which serve different purposes.

In-text keywords

In-text keywords appear naturally throughout a page’s visible content (titles, headings, and body text) and help search engines determine the topic and relevance of the page. These keywords have a real impact on ranking. They cannot be edited in the optimize SEO pop-up.

重要

强烈建议每页只使用一个 H1 标题以优化 SEO。

Meta tags and meta keywords

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 in Odoo:

  • 标题 标签指定了网页的标题,并在搜索引擎结果中显示为可点击的链接。它们应该简洁、描述性强且与页面内容相关。您可以更新网页的标题标签,或者留空以使用基于页面内容的默认值。

  • 描述 标签总结了网页的内容,通常显示在搜索引擎结果中的标题下方。它们用于鼓励用户访问页面。您可以更新网页的描述标签,或者留空以使用基于页面内容的默认值。

注解

预览 卡片显示标题和描述标签在搜索结果中的样子。它还包括您页面的 URL。

Meta keywords are placed in a hidden HTML tag <meta name="keywords">. Once used to describe a page’s topic, this tag is now ignored by major search engines and has little or no impact on SEO. To edit Keywords, enter the keywords you consider essential in this field and click Add to see how they are used at different levels in your content (H1, H2, page title, page description, page content) and the related searches in Google. The tool also suggests relevant keywords.

图像

图片的大小对页面加载速度有显著影响,而页面加载速度是搜索引擎优化 SEO 排名的重要标准。

小技巧

比较您的网站在 Google页面响应速度Pingdom Website Speed Test 中的排名。

Odoo 会自动压缩上传的图片并将其转换为 Webp 格式。使用这种文件格式,图片会变得更小,从而提高页面加载速度,并因此在 SEO 中获得更好的排名。Odoo 官方 主题 中使用的所有图片默认也会被压缩。如果您使用的是第三方主题,它可能提供的图片没有被高效压缩。

要修改网站上的图片 ,请选择图片,点击 编辑 ,然后转到 自定义 选项卡,在 图片 部分调整 格式

重要

Alt 标签用于提供图片显示内容的上下文,告知搜索引擎爬虫并允许它们正确索引图片。从 SEO 的角度来看,在 描述 字段中添加 Alt 标签关键词是必不可少的。此描述会被添加到图片的 HTML 代码中,并在图片无法显示时显示。

社交分享图版

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

小技巧

You can set a default social share image. Go to Website ‣ Configuration ‣ Settings in the SEO`section and tick the :guilabel:`Default Social Share Image checkbox.

注解

  • 社交预览 卡片显示页面信息在分享时的外观。

Indexation

Website indexation is the process by which search engines, such as Google, discover, analyze, and store information about a website’s content in their database. Search engine bots, known as crawlers or spiders, visit web pages and follow links to collect data, including text, images, and other media. The purpose of indexation is to make a website’s content searchable and discoverable to users. Without being indexed, a website or a specific page on that site will not appear in search engine results, regardless of how relevant or well-designed it is. Indexation is a fundamental step in SEO, serving as the foundation for a website’s visibility and organic traffic.

注解

When you first create your website on Odoo, it will not appear directly in search engine results. Search engines need time to crawl and index it, which can take anywhere from a few days to several weeks. For Google, you can use the Search Console and request indexing for specific URLs, though this does not guarantee faster results. If you have an existing website and are migrating, your previous website may still appear instead of the new one during that timeframe.

SEO impact when migrating your existing website to Odoo

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

  • Keep your existing content.

  • Implement redirects from old URLs to their new counterparts.

  • Monitor traffic and indexation to make sure that everything is going well, using Google 搜索控制台.

By doing this, you help search engines reindex your site and maintain your visibility in search results.

注解

It is normal to experience a traffic decrease in the first days.

Prevent a page from being indexed

To effectively prevent a page from appearing in search engine results, use one of the following methods:

  • noindex tag: Access the page’s properties and toggle the Indexed switch off.

    注解

    This option is not yet available for dynamic pages.

  • 404 or 403: Configure the page to return a 404 (Not Found) or 403 (Forbidden) HTTP status code. These codes signal to search engines that the page does not exist or is inaccessible, leading to its eventual removal from the index.

  • Google Search Console: Use Google Search Console to request the removal of specific URLs from Google’s index.

Prevent a website from being indexed

To prevent a website from appearing in search engine results, go to Configuration ‣ Settings, then in the Website Info section, add a random value in the Domain field. Doing so automatically inserts the following tag into the page source:

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

This tag instructs search engines not to index the site. After applying the change, it may take several days or weeks for search engines to update their results and remove the website.

Example

This can be used to prevent websites from test databases from appearing in search results.

网站地图

The sitemap points out website pages and their relation to each other to search engine crawlers. Odoo generates a /sitemap.xml file, including all URLs. For performance reasons, this file is cached and updated every 12 hours.

注解

如果您的网站有很多页面,Odoo 会自动创建一个网站地图索引文件,遵循 sitemaps.org 协议 ,每份文件中包含不超过 45000 个网站地图 URL。

每个网站地图条目都有三个自动计算的属性:

  • <loc>: 页面的 URL。

  • <lastmod>: 最后修改期。根据相关对象自动计算。对于与产品相关的页面,这可能是产品的最后修改日期或页面的最后修改日期。

  • <priority>: 优先级。模块可以根据其内容实现自己的优先级算法(例如,论坛可能会根据特定帖子的投票数来分配优先级)。静态页面的优先级由其优先级字段定义,该字段已标准化(默认值为 16)。

小技巧

To prevent pages from appearing in a sitemap, go to Site ‣ Properties, and toggle off the Indexed feature.

toggle off the “Indexed” field

robots.txt

A robots.txt file instructs search engine crawlers which parts of a website they are permitted to access. Its primary purpose is to:

  • Prevent overloading the website: By guiding crawlers away from certain sections, robots.txt helps manage server load.

  • Control access to resources and detailed descriptions: It can prevent crawlers from accessing media files (images, videos), CSS stylesheets, and JavaScript files, and from reading the content (text) of specific pages.

When indexing your website, search engines first look at the robots.txt file. Odoo automatically creates one robot.txt file available on mydatabase.odoo.com/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

If you do not want robots to crawl the /about-us page of your site, you can edit the robots.txt file to add Disallow: /about-us.

重要

While robots.txt prevents content from being crawled, it does not guarantee that a page will not be indexed. A page can still appear in search results if it is linked to from other crawled pages (indexed by “reference”). Google generally does not recommend using robots.txt to block webpages that you wish to keep out of search results entirely.

高级功能

结构化数据标记

Structured data markup is used to generate rich snippets in search engine results. It is a way for websites to send structured data to search engine crawlers, helping them understand your content and create well-presented search results.

默认情况下,Google 支持许多内容类型的 丰富摘要 ,包括评论、人物、产品、商家、活动和组织。

Microdata 是一组随 HTML5 引入的标签,可帮助搜索引擎更好地理解您的内容并以相关方式显示。Odoo 实现了 schema.org 规范 中定义的 microdata,适用于活动、电子商务产品、论坛帖子和联系地址。这使您的产品页面能够在 Google 中使用额外信息(如产品的价格和评分)进行显示:

搜索引擎结果中的展现组件

Hreflang HTML 标签

Odoo 会自动在您的网站多语言页面的代码中包含 hreflangx-default 标签。这些 HTML 属性对于告知搜索引擎特定页面的语言和地区定位至关重要。

更多内容

多语种翻译