网站分析

网站分析 功能帮助网站所有者了解人们如何使用他们的网站。它提供了有关访问者统计、浏览行为和互动的数据,有助于改进网站和营销策略。

您可以使用 Plausible.ioGoogle 分析 来跟踪您的 Odoo 网站流量。我们推荐使用 Plausible.io,因为它注重隐私、轻量且易于使用。

The Plausible Analytics dashboard is also integrated into Odoo and can be accessed via Website ‣ Reporting ‣ Analytics.

Plausible.io

Odoo hosts its own Plausible.io server and provides a free and ready-to-use Plausible.io solution for Odoo Online databases that use the odoo.com domain. Odoo automatically creates and sets up your account. Start using it by going to Website ‣ Reporting ‣ Analytics.

注解

  • If you use a custom domain name (e.g., example.com), you need to create your own Plausible.io account and subscription.

  • If you already have a Plausible.io account and you want to connect it to your Odoo Online database, you must create two ir.config.parameters to use Plausible.io’s servers. To do so, enable the developer mode and go to General Settings ‣ Technical ‣ System Parameters. Click New and fill in the following Key and Value fields:

    website.plausible_script

    https://plausible.io/js/plausible.js

    website.plausible_server

    https://plausible.io

然后,请按照以下步骤将您的现有账户连接到 Plausible.io 服务器。

如果您的数据库托管在 Odoo.shOn-premise 上,或者您希望使用自己的 Plausible.io 账户,请按以下步骤操作:

  1. Create or sign in to a Plausible.io account using the following link: https://plausible.io/register.

  2. If you are creating a new account, go through the registration and activation steps. On the Add website info page, add the Domain of your website without including www (e.g., example.odoo.com) and change the Reporting Timezone, if necessary. Click Install Plausible to proceed to the next step. Ignore the Manual installation instructions and click Start collecting data.

  3. Once done, click the Plausible.io logo in the upper-left part of the page to access your list of websites, then click the (ellipsis) icon next to the website and select Settings from the drop-down menu.

    点击网站列表中的齿轮图标。
  4. In the sidebar, select Visibility, then click Add Shared link.

  5. Enter a Name, leave the Password (optional) field empty, as the Plausible analytics dashboard integration in Odoo does not support it, then click Create shared link.

  6. 复制共享链接。

    从 Plausible.io 复制共享链接 URL
  7. 在 Odoo 中,转至 网站 ‣ 配置 ‣ 设置

  8. In the SEO section, enable Plausible Analytics, then paste the Shared Link Auth and click Save.

小技巧

If you have multiple websites, add your websites to your Plausible.io account by going to https://plausible.io/sites and clicking + Add Website. In Odoo, in the Website settings, make sure to select the website in the Settings of Website field at the top of the page before pasting the Shared link.

注解

Odoo 会自动推送两个自定义目标:潜在客户生成商店

Google 分析

要使用 Google Analytics 跟踪您的 Odoo 网站流量:

  1. 使用以下链接创建或登录 Google 账户: https://analytics.google.com

    • 如果您是首次设置 Google Analytics,请点击 开始统计 并完成账户创建步骤。

    • If you already have a Google Analytics account, sign in and click the icon in the bottom-left corner of the page to access the Admin page. Then, click + Create and select Property from the drop-down menu.

  2. Complete the next steps: property creation, business details and business objectives.

  3. 当您到达 数据收集 步骤时,选择 Web 平台。

    选择一个平台用于您的 Google Analytics 媒体资源。
  4. Set up your data stream: Specify your Website URL and a Stream name, then click Create & continue.

  5. 复制您的 评测 ID.

    Google Analytics 中的测评ID。
  6. 在 Odoo 中,转至 网站 ‣ 配置 ‣ 设置

  7. SEO 部分,启用 Google Analytics ,然后粘贴 评测 ID 并点击 保存

小技巧

If you have multiple websites with separate domains, it is recommended to create one property per domain. In Odoo, in the Website settings, make sure to select the website in the Settings of Website field at the top of the page before pasting the Measurement ID.

Google 标签管理器

Google Tag Manager is a tag management system that allows you to easily update measurement codes and related code fragments, collectively known as tags on your website or mobile app, directly through the code injector.

注解

GTM is not an analytics tool and does not offer reporting features; it is used to collect data and works alongside Google Analytics to provide more detailed insights. In order to use GTM properly, it is recommended to configure Google Analytics as well.

For more information refer to the documentation on linking Google Analytics and Google Tag Manager.

警告

  • 某些 GTM 标签使用数据层(例如,高级电子商务跟踪数据层)来检索变量并将它们发送到 Google Analytics。目前 Odoo 中不管理数据层。

  • Google 标签管理器可能不符合当地的数据保护法规。

To configure GTM, proceed as follows:

  1. 通过访问 https://tagmanager.google.com/ 创建或登录 Google 账户。

  2. In the Accounts tab, click Create Account.

  3. 输入 账户名称 并选择账户的 国家

  4. 容器名称 字段中输入您的网站 URL,并选择 目标平台

  5. 点击 创建 并同意服务条款。

  6. Copy the <head> and <body> codes from the popup window. Then, go to your website, click Edit, go to the Theme tab, scroll down to the Advanced section, then click <head> and </body> next to Code Injection to paste the codes.

    安装 GTM

注解

The data is collected in the marketing tools used to monitor the website (e.g., Google Analytics, Plausible, Facebook Pixel), not in Odoo.