การวิเคราะห์เว็บไซต์¶
การวิเคราะห์เว็บไซต์ช่วยให้เจ้าของเว็บไซต์ติดตามว่าผู้คนใช้เว็บไซต์อย่างไร มีข้อมูลเกี่ยวกับข้อมูลประชากร พฤติกรรม และการโต้ตอบของผู้เยี่ยมชม ช่วยปรับปรุงเว็บไซต์และกลยุทธ์การตลาด
คุณสามารถติดตามปริมาณการเข้าชมเว็บไซต์ Odoo ของคุณได้โดยใช้ Plausible.io หรือ Google Analytics เราแนะนำให้ใช้ Plausible.io เนื่องจากเป็นมิตรกับความเป็นส่วนตัว น้ำหนักเบา และใช้งานง่าย
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.
Tip
Click the See Analytics Report link to open the corresponding report.
Note
หากคุณมีบัญชี Plausible.io อยู่แล้ว และต้องการเชื่อมต่อกับฐานข้อมูล Odoo Online ของคุณ คุณต้องสร้าง ir.config.parameters สองรายการเพื่อใช้เซิร์ฟเวอร์ของ Plausible.io ในการดำเนินการนี้ ให้เปิดใช้งาน:ref:โหมดนักพัฒนา <developer-mode> และไปที่ คลิก สร้าง และกรอกข้อมูลในฟิลด์ คีย์ และ ค่า ต่อไปนี้:
คีย์
ค่า
website.plausible_script
https://plausible.io/js/plausible.js
website.plausible_server
https://plausible.io
จากนั้นไปที่เว็บไซต์ Plausible และทำตามขั้นตอนเพื่อ:ref:`ตั้งค่าบัญชีของคุณ <analytics/account-setting>`และเชื่อมโยงกับฐานข้อมูล Odoo ของคุณ
Warning
การปิดการใช้งานบัญชี Plausible.io ฟรีที่เชื่อมโยงกับฐานข้อมูล Odoo Online ของคุณจะลบคีย์ที่มีอยู่ด้วย ผลที่ตามมาคือคีย์ใหม่จะถูกสร้างขึ้น ในขณะที่ข้อมูลในอดีตทั้งหมดจะยังคงเชื่อมโยงกับคีย์เก่า หากคุณวางแผนที่จะปิดการใช้งานบัญชี ขอแนะนำให้บันทึกคีย์ที่มีอยู่เพื่อรักษาการเข้าถึงข้อมูลนั้น
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.เมื่อเสร็จแล้ว ให้คลิกโลโก้ Plausible.io ที่มุมซ้ายบนของหน้าเพื่อเข้าถึง รายชื่อเว็บไซต์ จากนั้นคลิกไอคอน (จุดไข่ปลา) ถัดจากเว็บไซต์และเลือก การตั้งค่า
In the sidebar, select Visibility, then click Add shared link.
ป้อน:guilabel:
ชื่อปิดตัวเลือก Password protect เนื่องจากการรวมแดชบอร์ด Plausible analytics ใน Odoo ไม่รองรับ จากนั้นคลิก Create shared linkClick COPY to add the shared link to the clipboard.
ใน Odoo ไปที่
ในส่วน การติดตามและ SEO เปิดใช้งาน Plausible Analytics จากนั้นวาง Shared Link Auth และคลิก บันทึก
Tip
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 .
ดูเพิ่มเติม
Google Analytics¶
เพื่อติดตามปริมาณการเข้าชมเว็บไซต์ Odoo ของคุณด้วย Google Analytics:
สร้างหรือลงชื่อเข้าใช้บัญชี Google โดยใช้ลิงก์ต่อไปนี้: https://analytics.google.com
หากคุณกำลังตั้งค่า Google Analytics เป็นครั้งแรก ให้คลิก เริ่มการวัด และดำเนินการตามขั้นตอนการสร้างบัญชี
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.
เมื่อคุณถึงขั้นตอน การรวบรวมข้อมูล ให้เลือกแพลตฟอร์ม เว็บ
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.
ใน Odoo ไปที่
In the Tracking & SEO section, enable Google Analytics, then paste the measurement ID in the Measurement ID or Tag field and click Save.
Tip
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.
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.
Warning
แท็ก GTM บางตัวใช้เลเยอร์ข้อมูล (เช่น เลเยอร์ข้อมูลการติดตามอีคอมเมิร์ซขั้นสูง) เพื่อดึงตัวแปรและส่งไปยัง Google Analytics ปัจจุบัน Odoo ยังไม่รองรับการจัดการเลเยอร์ข้อมูล
Google Tag Manager อาจไม่สอดคล้องกับกฎระเบียบการคุ้มครองข้อมูลในท้องถิ่น
ในการกำหนดค่า GTM ให้ดำเนินการดังนี้:
สร้างหรือเข้าสู่ระบบบัญชี Google โดยไปที่ https://tagmanager.google.com/
ในแท็บ บัญชี ให้คลิก สร้างบัญชี
ป้อน ชื่อบัญชี และเลือก ประเทศ ของบัญชี
ป้อน URL ของเว็บไซต์ของคุณในฟิลด์ ชื่อคอนเทนเนอร์ และเลือก แพลตฟอร์มเป้าหมาย
คลิก สร้าง และยอมรับข้อกำหนดการให้บริการ
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.
Note
ข้อมูลจะถูกรวบรวมในเครื่องมือการตลาดที่ใช้ในการติดตามเว็บไซต์ (เช่น Google Analytics, Plausible, Facebook Pixel) ไม่ใช่ใน Odoo
ดูเพิ่มเติม