Google Analytics in Odoo
Follow your website traffic directly in the Odoo website dashboard
16 July, 2020 by
Google Analytics in Odoo
manaTec GmbH, Tom Pohling
 

Google Analytics is a tool for analyzing traffic on websites. Among other things, the number, duration or various demographic characteristics of website visitors are analyzed. The analysis of this data provides us, as the website operator, with information on how we can optimize our website and target marketing campaigns.

In today's blog, we'll look at integrating Google Analytics into Odoo. Google Analytics can be easily integrated into our ERP system Odoo, so that we can track, view and evaluate the number of visitors to our website directly in the dashboard of the website module in Odoo.

To configure Google Analytics in Odoo, we need access to the general settings as well as to the Website module. In the first step, we navigate to the general settings --> Website --> Google Analytics. There we activate Google Analytics for Odoo.

In the next step, we need the tracking ID of our Google Analytics property. For this we go to https://marketingplatform.google.com/about/analytics/ and create a Google Analytics account. After a successful login, we create our Google Analytics property by specifying the account, the name of the account, the name of the website and the URL of the website.

Creation of the Tracking ID in the Google Analytics account.
Creation of the Tracking ID in the Google Analytics account.

Next, the tracking ID is created. We now enter it in the general settings in Odoo. To do this, we navigate to the general settings --> Website --> Google Analytics --> Tracking ID --> Enter Tracking ID. We confirm the changes made to the settings by clicking "Save".

Entering the Tracking ID in Odoo.
Entering the Tracking ID in Odoo.

Then we need the client ID of our Google Analytics API. For this, we go to https://console.developers.google.com and log in with our Google account. After successful login, we create our Analytics API credentials by first selecting the Analytics API.

The selection of the Analyitcs API in the Google API Console.
The selection of the Analyitcs API in the Google API Console.

After selecting the Analytics API, we create a new project, enable the Analytics API and configure the credentials for the API. To do this, we answer the first questions as shown in the following figure.

Configuration of the Analytics API in the Google API Console.
Configuration of the Analytics API in the Google API Console.

Then we create the Client ID and answer the further questions according to the following figure.

Configuration of the Analytics API in the Goolge API Console.
Configuration of the Analytics API in the Goolge API Console.

Additionally, we can configure some individual settings, which are not mandatory for the creation of the Client ID. Now we receive our Client ID and can also enter it in Odoo.

To do this, we navigate in Odoo to the module Website --> Dashboard --> Analytics --> Link my Analytics account. Now, a wizzard opens where we enter both the Tracking ID and the Client ID again and confirm with "Save".

Entering the Tracking ID and the Client ID in Odoo.
Entering the Tracking ID and the Client ID in Odoo.

In the last step, we authorize Odoo to access Google Analytics by clicking the "Access Google Analytics" button. After a short loading time, a graph will now appear in our Odoo dashboard showing us the number of website visitors to our Odoo website.

Google Analytics in Odoo.

This enables us to analyze and evaluate the number of visitors to our Odoo website. In spite of the fact that in Odoo only the number of visitors is shown to us we can of course call up further key figures via our Google Analytics account.

You want to integrate Google Analytics in Odoo or have questions about the configuration of Google Analytics in Odoo? Contact us now and we are a reliable Odoo partner at your side!


Sources: www.odoo.com, www.t3n.de

 
Power BI & Odoo-based controlling for consulting projects
Controlling for consulting projects: Key figure development and reporting in Power BI