Phân tích website¶
Phân tích website giúp chủ sở hữu website theo dõi cách mọi người sử dụng trang web của họ. Nó cung cấp dữ liệu về nhân khẩu học, hành vi và tương tác của khách truy cập, giúp cải thiện các chiến lược website và tiếp thị.
Bạn có thể theo dõi lưu lượng truy cập website Odoo của mình bằng cách sử dụng Plausible.io hoặc Google Analytics. Chúng tôi khuyên dùng Plausible.io vì nó thân thiện với quyền riêng tư, nhẹ và dễ sử dụng.
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.
Mẹo
Click the See Analytics Report link to open the corresponding report.
Ghi chú
Nếu bạn đã có tài khoản Plausible.io và muốn kết nối tài khoản này với cơ sở dữ liệu Odoo Online của mình, bạn cần tạo hai ir.config.parameters để sử dụng máy chủ của Plausible.io. Để thực hiện điều đó, hãy bật chế độ nhà phát triển và truy cập vào . Nhấn Mới và điền thông tin vào các trường Khóa và Giá trị như sau:
Khoá
Giá trị
website.plausible_script
https://plausible.io/js/plausible.js
website.plausible_server
https://plausible.io
Sau đó, truy cập trang web Plausible và làm theo các bước để thiết lập tài khoản của bạn và liên kết nó với cơ sở dữ liệu Odoo của bạn.
Cảnh báo
Việc hủy kích hoạt tài khoản Plausible.io miễn phí được liên kết với cơ sở dữ liệu Odoo Online của bạn cũng sẽ xóa các khóa hiện có. Kết quả là các khóa mới sẽ được tạo, trong khi tất cả dữ liệu lịch sử sẽ vẫn được liên kết với các khóa cũ. Nếu bạn dự định hủy kích hoạt tài khoản, bạn nên lưu các khóa hiện có để bảo toàn quyền truy cập vào dữ liệu đó.
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.Sau khi hoàn tất, nhấp vào logo Plausible.io ở phần trên bên trái của trang để truy cập danh sách trang web, sau đó nhấp vào biểu tượng (dấu ba chấm) bên cạnh trang web và chọn Cài đặt.
In the sidebar, select Visibility, then click Add shared link.
Nhập Tên, giữ tùy chọn Bảo vệ bằng mật khẩu ở trạng thái tắt, vì tích hợp bảng điều khiển phân tích Plausible trong Odoo không hỗ trợ nó, sau đó nhấp vào Tạo liên kết được chia sẻ.
Click COPY to add the shared link to the clipboard.
Trong Odoo, chuyển đến .
Trong phần Theo dõi & SEO, bật Phân tích Plausible, sau đó dán Xác thực liên kết được chia sẻ và nhấp vào Lưu.
Mẹo
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 .
Xem thêm
Google Analytics¶
Để theo dõi lưu lượng truy cập trang web Odoo của bạn bằng Google Analytics:
Tạo hoặc đăng nhập vào tài khoản Google bằng liên kết sau: https://analytics.google.com.
Nếu bạn đang thiết lập Google Analytics lần đầu tiên, hãy nhấp vào Start measuring và thực hiện qua bước tạo tài khoản.
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.
Khi bạn đến bước Thu thập dữ liệu, hãy chọn nền tảng Web.
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.
Trong Odoo, chuyển đến .
In the Tracking & SEO section, enable Google Analytics, then paste the measurement ID in the Measurement ID or Tag field and click Save.
Mẹo
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.
Ghi chú
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.
Cảnh báo
Một số thẻ GTM sử dụng lớp dữ liệu (ví dụ: lớp dữ liệu theo dõi thương mại điện tử nâng cao) để truy xuất biến và gửi chúng đến Google Analytics. Các lớp dữ liệu hiện không được quản lý trong Odoo.
Google Tag Manager có thể không tuân thủ các quy định bảo vệ dữ liệu địa phương.
Để cấu hình GTM, hãy thực hiện như sau:
Tạo hoặc đăng nhập vào tài khoản Google bằng cách truy cập https://tagmanager.google.com/.
Trong tab Accounts, hãy nhấp vào Create Account.
Nhập Account Name và chọn Country của tài khoản.
Nhập URL trang web của bạn vào trường Container name và chọn Target platform.
Nhấp vào Create và đồng ý với Điều khoản dịch vụ.
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.
Ghi chú
Dữ liệu được thu thập trong các công cụ tiếp thị được sử dụng để giám sát trang web (ví dụ: Google Analytics, Plausible, Facebook Pixel), không phải trong Odoo.