ウェブサイト分析

ウェブサイト分析は、サイト所有者がサイトの利用状況を監視するのに役立ちます。訪問者の人口統計、行動、インタラクションに関するデータを提供し、ウェブサイトやマーケティング戦略の改善に役立ちます。

Odooウェブサイトのトラフィックは、:ref:`analytics/plausible`または:ref:`analytics/google-analytics`を使用して追跡できます。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-work Plausible.io solution for Odoo Online databases. Odoo automatically creates and sets up your account. You can start using it by going to Website ‣ Reporting ‣ Analytics.

注釈

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.sh**または**オンプレミス**でホストされている場合、または独自のPlausible.ioアカウントを使用する場合は、次の手順を実行してください:

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

  2. If you are creating a new account, go through the registration and activation steps. When asked to provide your website details, add its Domain without including www (e.g., example.odoo.com) and change the Reporting Timezone if necessary. Click Add snippet to proceed to the next step. Ignore the Add JavaScript snippet instructions and click Start collecting data.

  3. Once done, click the Plausible logo in the upper-left part of the page to access your list of websites, then click the gear icon next to the website.

    ウェブサイトのリストで歯車アイコンをクリックします。
  4. In the sidebar, select Visibility, then click + New link.

  5. Enter a Name, leave the Password field empty, as the Plausible analytics dashboard integration in Odoo doesn't support it, then click Create shared link.

    Credentials creation for the new shared link
  6. 共有リンクをコピーします。

    Plausible.ioから共有リンクのURLをコピー
  7. Odooで、:menuselection:`ウェブサイト --> 設定 --> 管理設定`に移動します。

  8. In the SEO section, enable Plausible Analytics, then paste the Shared Link 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 before pasting the Shared link.

注釈

Odooは自動的に2つのカスタムゴールをプッシュします:`Lead Generation`と`Shop`です。

Google Analytics

OdooウェブサイトのトラフィックをGoogle Analyticsで追跡するには:

  1. 次のリンクを使用してGoogleアカウントを作成またはログインします:https://analytics.google.com

    • Google Analyticsを初めて設定する場合は、:guilabel:`測定を開始`をクリックして、アカウント作成手順を進めます。

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

      Google Analyticsの測定ID。
  2. Complete the next steps: property creation, business details, and business objectives.

  3. **データ収集**ステップに到達したら、ウェブプラットフォームを選択します。

    Google Analyticsプロパティのプラットフォームを選択します。
  4. Set up your data stream: Specify your Website URL and a Stream name, then click Create stream.

  5. :guilabel:`測定ID`をコピーします。

    Google Analyticsの測定ID。
  6. Odooで、:menuselection:`ウェブサイト --> 設定 --> 管理設定`に移動します。

  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 before pasting the Measurement ID.

Googleタグマネージャー

GTM 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タグは、データレイヤー(例:高度なeコマーストラッキングデータレイヤー)を使用して変数を取得し、Google Analyticsに送信します。データレイヤーは現在Odooでは管理されていません。

  • Googleタグマネージャーは、地域のデータ保護規制に準拠していない可能性があります。

To use GTM, proceed as follows:

  1. https://tagmanager.google.com/ にアクセスして、Googleアカウントを作成またはログインします。

  2. In the Accounts tab, click Create account.

  3. :guilabel:`アカウント名`を入力し、アカウントの:guilabel:`国`を選択します。

  4. ウェブサイトのURLを:guilabel:`コンテナ名`フィールドに入力し、:guilabel:`ターゲットプラットフォーム`を選択します。

  5. :guilabel:`作成`をクリックし、利用規約に同意します。

  6. Copy the <head> and <body> codes from the popup window. Then, go to your website, click Edit, go to the Themes tab, scroll down to the Website Settings section, then click <head> and </body> to paste the codes.

    Googleタグマネージャーをインストール

注釈

データは、ウェブサイトを監視するために使用されるマーケティングツール(例:Google Analytics、Plausible、Facebook Pixel)で収集され、Odooでは収集されません。