Analys av webbplatser

Webbplatsanalys hjälper webbplatsägare att övervaka hur människor använder deras webbplats. Den ger information om besökarnas demografi, beteende och interaktioner, vilket bidrar till att förbättra webbplatser och marknadsföringsstrategier.

Du kan spåra trafiken på din Odoo-webbplats med hjälp av Plausible.io eller Google Analytics. Vi rekommenderar att du använder Plausible.io eftersom det är integritetsvänligt, lätt och enkelt att använda.

Plausible.io

Odoo hosts its own Plausible.io server, and the Plausible Analytics dashboard is integrated into Odoo and can be accessed via Website ‣ Reporting ‣ Analytics.

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 Website ‣ Configuration ‣ Settings, 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.

Tips

Click the See Analytics Report link to open the corresponding report.

Observera

Om du redan har ett Plausible.io-konto och vill ansluta det till din Odoo Online-databas måste du skapa två ir.config.parameters för att använda Plausible.io:s servrar. För att göra detta, aktivera systemutvecklarläget och gå till Allmänna inställningar ‣ Tekniskt ‣ Systemparametrar. Klicka på Ny och fyll i följande fält Nyckel och Värde:

Nyckel

Värde

webbplats.plausible_script

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

website.plausible_server

https://plausible.io

Gå sedan till Plausible-webbplatsen och följ stegen för att konfigurera ditt konto och länka det till din Odoo-databas.

Varning

Att inaktivera det kostnadsfria Plausible.io-kontot som är länkat till din Odoo Online-databas kommer också att ta bort de befintliga nycklarna. Till följd av detta kommer nya nycklar att genereras, medan all historisk data förblir kopplad till de gamla nycklarna. Om du planerar att inaktivera kontot rekommenderas det att spara de befintliga nycklarna för att bevara åtkomsten till dessa data.

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:

  1. Create or sign in to a Plausible.io account.

  2. 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 www or http (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.

  3. När det är klart, klicka på Plausible.io-loggan i den övre vänstra delen av sidan för att komma åt listan över webbplatser, klicka sedan på ikonen (ellips) bredvid webbplatsen och välj Inställningar.

    Klicka på kugghjulsikonen i listan över webbplatser.
  4. In the sidebar, select Visibility, then click Add shared link.

  5. Ange ett Namn, behåll alternativet Lösenordsskydd avaktiverat, eftersom Plausible analytics-dashboardintegrationen i Odoo inte stöder det, klicka sedan på Skapa delad länk.

  6. Click COPY to add the shared link to the clipboard.

    Kopiera den delade länkens URL från Plausible.io
  7. I Odoo, gå till Website ‣ Configuration ‣ Settings.

  8. I sektionen Spårning & sökmotoroptimering, aktivera Plausible Analytics, klistra sedan in Delad länk Auth och klicka på Spara.

Tips

  • 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 Generation and Shop. 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

För att följa trafiken på din Odoo-webbplats med Google Analytics:

  1. Skapa eller logga in på ett Google-konto via följande länk: https://analytics.google.com.

    • Om du konfigurerar Google Analytics för första gången klickar du på Start mätning och går igenom steget för att skapa ett konto.

    • 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, and click Create.

  3. När du når steget Data collection, välj plattformen Web.

  4. Set up your data stream: Specify your Website URL and a Stream name, then click Create & continue in the upper-right corner.

  5. Close the Set up a Google Tag popover, as no Google Tag is required to link Google Analytics to Odoo.

  6. In the Web stream details popover, copy the Measurement ID.

    ID för mätning i Google Analytics.
  7. I Odoo, gå till Website ‣ Configuration ‣ Settings.

  8. In the Tracking & SEO section, enable Google Analytics, then paste the measurement ID in the Measurement ID or Tag field and click Save.

Tips

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, directly through the code injector.

Observera

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.

Varning

  • Vissa GTM-taggar använder datalager (t.ex. avancerade datalager för spårning av e-handel) för att hämta variabler och skicka dem till Google Analytics. Datalager hanteras för närvarande inte i Odoo.

  • Google Tag Manager kanske inte överensstämmer med lokala dataskyddsbestämmelser.

För att konfigurera GTM, gör så här:

  1. Skapa eller logga in på ett Google-konto genom att gå till https://tagmanager.google.com/.

  2. Under fliken Konton, klicka på Skapa konto.

  3. Ange ett Kontonamn och välj kontots Land.

  4. Ange webbplatsens URL i fältet Container name och välj Target platform.

  5. Klicka på Create och godkänn användarvillkoren.

  6. 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.

Observera

Uppgifterna samlas in i de marknadsföringsverktyg som används för att övervaka webbplatsen (t.ex. Google Analytics, Plausible, Facebook Pixel), inte i Odoo.