ウェブサイト分析¶
ウェブサイト分析は、サイト所有者がサイトの利用状況を監視するのに役立ちます。訪問者の人口統計、行動、インタラクションに関するデータを提供し、ウェブサイトやマーケティング戦略の改善に役立ちます。
Odooウェブサイトのトラフィックは、:ref:`analytics/plausible`または:ref:`analytics/google-analytics`を使用して追跡できます。Plausible.ioはプライバシーに配慮し、軽量で使いやすいため、使用をお勧めします。
Plausible.io¶
Odoo hosts its own Plausible.io server, and the Plausible Analytics dashboard is integrated into Odoo and can be accessed via .
Databases hosted on Odoo Online benefit from a free, ready-to-use Plausible.io solution with automatically generated credentials and a preconfigured Plausible account. To enable it, go to , then, in the Tracking & SEO section, enable Plausible Analytics, and click Save. The credentials are automatically filled in the Shared Link Auth and the Site fields.
ちなみに
Click the See Analytics Report link to open the corresponding report.
注釈
既にPlausible.ioアカウントをお持ちで、それをOdoo Onlineデータベースに接続したい場合は、Plausible.ioのサーバーを使用するために2つの`ir.config.parameters`を作成する必要があります。これを行うには、:ref:`開発者モード <developer-mode>`を有効にして、:menuselection:`一般設定 --> 技術 --> システムパラメータ`に移動します。:guilabel:`新規`をクリックして、以下の:guilabel:`キー`と:guilabel:`値`フィールドに入力します:
キー
数値
website.plausible_script
https://plausible.io/js/plausible.js
website.plausible_server
https://plausible.io
次に、Plausibleウェブサイトにアクセスし、手順に従ってアカウントを設定し、Odooデータベースにリンクします。
警告
**Odoo Online**データベースにリンクされている無料のPlausible.ioアカウントを無効化すると、既存のキーも削除されます。その結果、新しいキーが生成されますが、すべての履歴データは古いキーに関連付けられたままになります。アカウントを無効化する予定がある場合は、そのデータへのアクセスを保持するために既存のキーを保存することをお勧めします。
If your database is hosted on Odoo.sh or On-premise, you need to create your own Plausible.io account or use an existing one and link it to your database. To do so, follow these steps:
If you are creating a new account, go through the registration and activation steps. On the Add a website page, enter your website Domain name without including
wwworhttp(e.g.,example.com), and click Add site. On the Add tracking to your site page, follow the instructions to install Plausible on your site. Once done, click I've installed it to proceed to the next step.完了したら、ページの左上にあるPlausible.ioロゴをクリックして`ウェブサイトのリスト<https://plausible.io/sites>`_にアクセスし、ウェブサイトの横にある:icon:
fa-ellipsis-v`(:guilabel:`省略記号)アイコンをクリックして:icon:fa-cog:guilabel:`設定`を選択します。
In the sidebar, select Visibility, then click Add shared link.
:guilabel:`名前`を入力し、OdooのPlausible分析ダッシュボード統合はこれをサポートしていないため、:guilabel:`パスワード保護`オプションは無効のままにして、:guilabel:`共有リンクを作成`をクリックします。
Click COPY to add the shared link to the clipboard.
Odooで、:menuselection:`ウェブサイト --> 設定 --> 管理設定`に移動します。
:guilabel:`トラッキング & SEO`セクションで:guilabel:`Plausible Analytics`を有効にし、:guilabel:`共有リンク認証`を貼り付けて:guilabel:`保存`をクリックします。
ちなみに
If you have multiple websites, add them to your Plausible.io account by going to https://plausible.io/sites and clicking + Add Website. In the Odoo Website settings, ensure that the correct website is selected from the dropdown menu at the top of the page before pasting the shared link.
Odoo automatically pushes two custom goals:
Lead GenerationandShop. Custom goals can be added via Plausible.io. To do so, click the (ellipsis) button on the relevant website card, then navigate to Goals in the sidebar menu, and click Add goal .
Google Analytics¶
OdooウェブサイトのトラフィックをGoogle Analyticsで追跡するには:
次のリンクを使用してGoogleアカウントを作成またはログインします:https://analytics.google.com。
Google Analyticsを初めて設定する場合は、:guilabel:`測定を開始`をクリックして、アカウント作成手順を進めます。
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.
Complete the next steps: property creation, Business details, and Business objectives, and click Create.
Set up your data stream: Specify your Website URL and a Stream name, then click Create & continue in the upper-right corner.
Close the Set up a Google Tag popover, as no Google Tag is required to link Google Analytics to Odoo.
In the Web stream details popover, copy the Measurement ID.
Odooで、:menuselection:`ウェブサイト --> 設定 --> 管理設定`に移動します。
In the Tracking & SEO section, enable Google Analytics, then paste the measurement ID in the Measurement ID or Tag field and click Save.
ちなみに
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 correct website in the field next to New website 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. 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タグは、データレイヤー(例:高度なeコマーストラッキングデータレイヤー)を使用して変数を取得し、Google Analyticsに送信します。データレイヤーは現在Odooでは管理されていません。
Googleタグマネージャーは、地域のデータ保護規制に準拠していない可能性があります。
GTMを設定するには、次の手順を実行します:
https://tagmanager.google.com/ にアクセスして、Googleアカウントを作成またはログインします。
ウェブサイトのURLを:guilabel:`コンテナ名`フィールドに入力し、:guilabel:`ターゲットプラットフォーム`を選択します。
:guilabel:`作成`をクリックし、利用規約に同意します。
Copy the
<head>and<body>codes from the pop-up 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, then click Save.
注釈
データは、ウェブサイトを監視するために使用されるマーケティングツール(例:Google Analytics、Plausible、Facebook Pixel)で収集され、Odooでは収集されません。