10000 [IMP] website: update doc about Google Analytics config · jango2015/documentation-user@a0be0a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit a0be0a9

Browse files
fgi-odootivisse
authored andcommitted
[IMP] website: update doc about Google Analytics config
1 parent a3edbe2 commit a0be0a9

25 files changed

+84
-40
lines changed

website/optimize.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Optimize
77

88
optimize/seo
99
optimize/google_analytics
10+
optimize/google_analytics_dashboard
1011

1112

1213

website/optimize/google_analytics.rst

Lines changed: 17 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,31 @@
1-
==================================================
2-
How to track your traffic through Google Analytics
3-
==================================================
1+
=======================================================
2+
How to track your website's traffic in Google Analytics
3+
=======================================================
44

5-
To setup the signin process with Google, first you have to perform the following steps:
5+
To follow your website's traffic with Google Analytics:
66

7+
- `Create a Google Analytics account <https://www.google.com/analytics/>`__ if
8+
you don't have any.
79

8-
- Connect on your google account and go to https://console.developers.google.com
10+
- Go through the creation form and accept the conditions to get the tracking ID.
911

10-
- Click on **Create Project** and enter a project name
11-
12-
.. image:: media/GC_create_project.png
13-
:align: center
14-
15-
.. image:: media/GC_new_project.png
12+
.. image:: media/google_analytics_account.png
1613
:align: center
1714

18-
- In the menu on left side, select the sub menu APIs (from menu APIs and auth) and
19-
activate **"Analytics API"** by clicking on button "OFF". When it's done, check
20-
that the button of **"Calendar API"** is well in green and with text "ON"
15+
- Copy the tracking ID to insert it in Odoo.
2116

22-
.. image:: media/GC_API.png
17+
.. image:: media/google_analytics_tracking_id.png
2318
:align: center
2419

25-
.. image:: media/GC_off_api.png
26-
:align: center
20+
- Go to the *Configuration* menu of your Odoo's Website app.
21+
In the settings, turn on Google Analytics and paste the tracking ID.
22+
Then save the page.
2723

28-
.. image:: media/GC_on_api.png
24+
.. image:: media/google_analytics_settings.png
2925
:align: center
3026

31-
- In the menu on left side, select the sub menu **"Credentials"** (from menu APIs and
32-
auth) and click on button **"Create New Client ID"**
27+
To make your first steps in Google Analytics, refer to `Google Documentation. <https://support.google.com/analytics/answer/1008015?hl=en/>`__
3328

34-
.. image:: media/GC_credentials.png
35-
:align: center
36-
37-
.. image:: media/GC_create_new_client_id.png
38-
:align: center
39-
40-
- Fill in the Name of application and check that the platform is well on **"Web Application"**.
41-
You should now configure the allowed pages on which you will be redirected. To do
42-
it, you need to complete the field **"Redirect RI"** and set as value (your own domain
43-
followed by ``/google_account/authentication``) : You can now click on **"Create Client ID"**
44-
45-
.. image:: media/GC_client_id.png
46-
:align: center
47-
48-
- Once done, you will have the both informations (**Client ID** and **Client Secret**) that
49-
you need to insert in the 2 fields below !
50-
51-
.. image:: media/GC_copy.png
52-
:align: center
29+
.. seealso::
5330

54-
- Click on **Apply**
31+
* :doc:`google_analytics_dashboard`
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
============================================================
2+
How to track your website's traffic from your Odoo Dashboard
3+
============================================================
4+
5+
You can follow your traffic's statistics straight from your Odoo Website
6+
Dashboard thanks to Google Analytics.
7+
8+
- A preliminary step is creating a Google Analytics account and entering the
9+
tracking ID in your Website's settings (see :doc:`google_analytics`).
10+
11+
- Go to `Google APIs platform <https://console.developers.google.com>`__
12+
to generate Analytics API credentials. Log in with your Google account.
13+
14+
- Select Analytics API.
15+
16+
.. image:: media/google_analytics_api.png
17+
:align: center
18+
19+
- Create a new project and give it a name (e.g. Google Analytics in Odoo).
20+
21+
.. image:: media/google_analytics_create_project.png
22+
:align: center
23+
24+
- Enable the API.
25+
26+
.. image:: media/google_analytics_enable.png
27+
:align: center
28+
29+
- Create credentials to use in Odoo. Select *Web browser (Javascript)*
30+
as calling source and *User data* as kind of data.
31+
32+
.. image:: media/google_analytics_create_credentials.png
33+
:align: center
34+
35+
.. image:: media/google_analytics_get_credentials.png
36+
:align: center
37+
38+
- Then enter the name of the application (e.g. Odoo) and the allowed pages on
39+
which you will be redirected. The *Authorized JavaScript origin* is your
40+
Odoo's instance URL. The *Authorized redirect URI* is your Odoo's instance
41+
URL followed by /google_account/authentication.
42+
43+
.. image:: media/google_analytics_authorization.png
44+
:align: center
45+
46+
47+
- Go through the Consent Screen step by entering a product name
48+
(e.g. Google Analytics in Odoo). Feel free to check the customizations options
49+
but this is not mandatory. The Consent Screen will only show up when you enter
50+
the Client ID in Odoo for the first time.
51+
52+
- Finally you are provided with your Client ID. Copy and paste it in Odoo.
53+
54+
.. image:: media/google_analytics_client_id.png
55+
:align: center
56+
57+
- Open your Website Dashboard in Odoo and link your Analytics account.
58+
to past your Client ID.
59+
60+
.. image:: media/google_analytics_start.png
61+
:align: center
62+
63+
- As a last step, authorize Odoo to access Google API.
64+
65+
.. image:: media/google_analytics_login.png
66+
:align: center

website/optimize/media/GC_API.png

-5.13 KB
Binary file not shown.

website/optimize/media/GC_Project.png

-7.13 KB
Binary file not shown.
-17.9 KB
Binary file not shown.

website/optimize/media/GC_copy.png

-14.9 KB
Binary file not shown.
Binary file not shown.
-4.95 KB
Binary file not shown.
-5.18 KB
Binary file not shown.
-6.11 KB
Binary file not shown.

website/optimize/media/GC_off_api.png

-2.44 KB
Binary file not shown.

website/optimize/media/GC_on_api.png

-2.96 KB
Binary file not shown.
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)
0