Analytique du site web¶
L’analyse de site Web aide les propriétaires de sites à surveiller comment les visiteurs utilisent leur site. Elle fournit des données sur la démographie, le comportement et les interactions des visiteurs, aidant à améliorer les sites Web et les stratégies marketing.
Vous pouvez suivre le trafic de votre site Web Odoo en utilisant Plausible.io ou Google Analytics. Nous recommandons d’utiliser Plausible.io car il respecte la confidentialité, est léger et facile à utiliser.
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.
Astuce
Click the See Analytics Report link to open the corresponding report.
Note
Si vous possédez déjà un compte Plausible.io et souhaitez le connecter à votre base de données Odoo Online, vous devez créer deux ir.config.parameters pour utiliser les serveurs de Plausible.io. Pour ce faire, activer le mode développeur et aller dans . Cliquer sur Nouveau et renseigner les champs Clé et Valeur suivants :
Clé
Valeur
website.plausible_script
https://plausible.io/js/plausible.js
website.plausible_server
https://plausible.io
Then, go to the Plausible website and follow the steps to set up your account and link it to your Odoo database.
Avertissement
La désactivation du compte Plausible.io gratuit lié à votre base de données Odoo Online supprimera également les clés existantes. Par conséquent, de nouvelles clés seront générées, tandis que toutes les données historiques resteront associées aux anciennes clés. Si vous prévoyez de désactiver le compte, il est recommandé de sauvegarder les clés existantes pour préserver l’accès à ces données.
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.Once done, click the Plausible.io logo in the upper-left part of the page to access the list of websites, then click the (ellipsis) icon next to the website and select Settings.
In the sidebar, select Visibility, then click Add shared link.
Enter a Name, keep the Password protect option disabled, as the Plausible analytics dashboard integration in Odoo does not support it, then click Create shared link.
Click COPY to add the shared link to the clipboard.
Dans Odoo, allez à .
In the Tracking & SEO section, enable Plausible Analytics, then paste the Shared Link Auth and click Save.
Astuce
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 .
Voir également
Google Analytics¶
Pour suivre le trafic de votre site Odoo avec Google Analytics :
Créez ou connectez-vous à un compte Google en utilisant le lien suivant : https://analytics.google.com.
Si vous configurez Google Analytics pour la première fois, cliquez sur Commencer à mesurer et passez par l’étape de création de compte.
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.
When you reach the Data collection step, choose the Web platform.
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.
Dans Odoo, allez à .
In the Tracking & SEO section, enable Google Tag Manager/Google Analytics, paste the measurement ID in the Identifier field, and click Save.
Astuce
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 Tag Manager¶
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.
Note
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.
Avertissement
Certaines balises GTM utilisent des couches de données (par exemple, les couches de données de suivi eCommerce avancé) pour récupérer des variables et les envoyer à Google Analytics. Les couches de données ne sont actuellement pas gérées dans Odoo.
Google Tag Manager peut ne pas être conforme aux réglementations locales sur la protection des données.
Pour configurer GTM, procéder comme suit :
On the GTM accounts page, locate the relevant website and copy the container ID from the Container ID column. The ID starts with
GTM-, e.g.,GTM-1234XXX4321.
Dans Odoo, allez à .
In the Tracking & SEO section, enable Google Tag Manager/Google Analytics, paste the container ID in the Identifier field, and click Save.
Astuce
Alternatively, GTM can be configured by manually inserting code snippets. To do so:
On the GTM accounts page, click the relevant website.
On the Workspace page, click the container ID in the upper-right corner.
Copy the
<head>and<body>code from the pop-up window.In Odoo, go to your website, click Edit. Then, navigate to the Theme tab, scroll down to the Advanced section, and, next to Code Injection, click <head> and </body> to paste the corresponding code.
Cliquez sur Enregistrer.
Note
Les données sont collectées dans les outils marketing utilisés pour surveiller le site web (par ex. Google Analytics, Plausible, Facebook Pixel), pas dans Odoo.
Voir également