การวิเคราะห์เว็บไซต์

การวิเคราะห์เว็บไซต์ช่วยให้เจ้าของเว็บไซต์ติดตามว่าผู้คนใช้เว็บไซต์อย่างไร มีข้อมูลเกี่ยวกับข้อมูลประชากร พฤติกรรม และการโต้ตอบของผู้เยี่ยมชม ช่วยปรับปรุงเว็บไซต์และกลยุทธ์การตลาด

คุณสามารถติดตามปริมาณการเข้าชมเว็บไซต์ Odoo ของคุณได้โดยใช้ Plausible.io หรือ Google Analytics เราแนะนำให้ใช้ Plausible.io เนื่องจากเป็นมิตรกับความเป็นส่วนตัว น้ำหนักเบา และใช้งานง่าย

The Plausible analytics dashboard is also integrated into Odoo and can be accessed via Website ‣ Reporting ‣ Analytics.

Plausible.io

Odoo hosts its own Plausible.io server and provides a free and ready-to-work Plausible.io solution for Odoo Online databases. Odoo automatically creates and sets up your account. You can start using it by going to Website ‣ Reporting ‣ Analytics.

Note

หากคุณมีบัญชี Plausible.io อยู่แล้ว และต้องการเชื่อมต่อกับฐานข้อมูล Odoo Online คุณต้องสร้าง ir.config.parameters สองรายการเพื่อใช้เซิร์ฟเวอร์ Plausible.io เมื่อต้องการทำเช่นนี้ ให้เปิดใช้งาน โหมดนักพัฒนา และไปที่ การตั้งค่าทั่วไป ‣ เทคนิค -- พารามิเตอร์ระบบ คลิก สร้าง และกรอกข้อมูลในฟิลด์ คีย์ และ ค่า ต่อไปนี้:

คีย์

ค่า

website.plausible_script

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

website.plausible_server

https://plausible.io

จากนั้น ทำตามขั้นตอนด้านล่างเพื่อเชื่อมต่อบัญชีที่มีอยู่ของคุณกับเซิร์ฟเวอร์ Plausible.io

หากฐานข้อมูลของคุณโฮสต์บน Odoo.sh หรือ On-premise หรือหากคุณต้องการใช้บัญชี Plausible.io ของคุณเอง ให้ดำเนินการดังนี้:

  1. Create or sign in to a Plausible account using the following link: https://plausible.io/register.

  2. หากคุณกำลังสร้างบัญชีใหม่ โปรดดำเนินการตามขั้นตอนการลงทะเบียนและการเปิดใช้งาน เมื่อระบบขอให้ระบุรายละเอียดเว็บไซต์ ให้เพิ่ม โดเมน โดยไม่รวม www (เช่น example.odoo.com) และเปลี่ยน การรายงานเขตเวลา หากจำเป็น คลิก เพิ่มตัวอย่าง เพื่อดำเนินการขั้นตอนถัดไป ข้ามคำแนะนำ เพิ่มสคริปต์ JavaScript แล้วคลิก เริ่มการรวบรวมข้อมูล

  3. Once done, click the Plausible logo in the upper-left part of the page to access your list of websites, then click the gear icon next to the website.

    คลิกไอคอนเกียร์ในรายการเว็บไซต์
  4. In the sidebar, select Visibility, then click + New link.

  5. Enter a Name, leave the Password field empty, as the Plausible analytics dashboard integration in Odoo doesn't support it, then click Create shared link.

    Credentials creation for the new shared link
  6. คัดลอกลิงก์แบ่งปัน

    คัดลอก URL ลิงก์แบ่งปันจาก Plausible.io
  7. ใน Odoo ไปที่ เว็บไซต์ ‣ การกำหนดค่า ‣ การตั้งค่า

  8. In the SEO section, enable Plausible Analytics, then paste the Shared Link and click Save.

Tip

If you have multiple websites, add your websites to your Plausible.io account by going to https://plausible.io/sites and clicking + Add website. In Odoo, in the Website settings, make sure to select the website in the Settings of Website field before pasting the Shared link.

Note

Odoo จะส่ง custom goals สองรายการโดยอัตโนมัติ: Lead Generation และ Shop

Google Analytics

เพื่อติดตามปริมาณการเข้าชมเว็บไซต์ Odoo ของคุณด้วย Google Analytics:

  1. สร้างหรือลงชื่อเข้าใช้บัญชี Google โดยใช้ลิงก์ต่อไปนี้: https://analytics.google.com

    • หากคุณกำลังตั้งค่า Google Analytics เป็นครั้งแรก ให้คลิก เริ่มการวัด และดำเนินการตามขั้นตอนการสร้างบัญชี

    • If you already have a Google Analytics account, sign in and click the gear icon in the bottom-left corner of the page to access the Admin page. Then, click + Create Property.

      รหัสการวัดใน Google Analytics
  2. Complete the next steps: property creation, business details, and business objectives.

  3. เมื่อคุณไปถึงขั้นตอน Data collection ให้เลือกแพลตฟอร์ม Web

    เลือกแพลตฟอร์มสำหรับทรัพย์สิน Google Analytics ของคุณ
  4. Set up your data stream: Specify your Website URL and a Stream name, then click Create stream.

  5. คัดลอก รหัสการวัด

    รหัสการวัดใน Google Analytics
  6. ใน Odoo ไปที่ เว็บไซต์ ‣ การกำหนดค่า ‣ การตั้งค่า

  7. ในส่วน SEO ให้เปิดใช้งาน Google Analytics จากนั้นวาง Measurement ID และคลิก 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 website in the Settings of Website field before pasting the Measurement ID.

Google Tag Manager

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

Warning

  • แท็ก GTM บางตัวใช้เลเยอร์ข้อมูล (เช่น เลเยอร์ข้อมูลการติดตามอีคอมเมิร์ซขั้นสูง) เพื่อดึงตัวแปรและส่งไปยัง Google Analytics ปัจจุบัน Odoo ยังไม่รองรับการจัดการเลเยอร์ข้อมูล

  • Google Tag Manager อาจไม่สอดคล้องกับกฎระเบียบการคุ้มครองข้อมูลในท้องถิ่น

To use GTM, proceed as follows:

  1. สร้างหรือเข้าสู่ระบบบัญชี Google โดยไปที่ https://tagmanager.google.com/

  2. In the Accounts tab, click Create account.

  3. ป้อน ชื่อบัญชี และเลือก ประเทศ ของบัญชี

  4. ป้อน URL ของเว็บไซต์ของคุณในฟิลด์ ชื่อคอนเทนเนอร์ และเลือก แพลตฟอร์มเป้าหมาย

  5. คลิก สร้าง และยอมรับข้อกำหนดการให้บริการ

  6. Copy the <head> and <body> codes from the popup window. Then, go to your website, click Edit, go to the Themes tab, scroll down to the Website Settings section, then click <head> and </body> to paste the codes.

    ติดตั้ง Google Tag Manager

Note

ข้อมูลจะถูกรวบรวมในเครื่องมือการตลาดที่ใช้ในการติดตามเว็บไซต์ (เช่น Google Analytics, Plausible, Facebook Pixel) ไม่ใช่ใน Odoo