Umami อีกหนึ่ง Tool ใช้แทน Google Analytics

Umami อีกหนึ่ง Tool ใช้แทน Google Analytics

วันนี้ผมไปเจออีกตัวนึงที่น่าสนใจคล้ายๆกัน คือ Umami จริงๆ ก็ได้ยินมาซักพัก แต่ด้วยความที่ใช้ Plausible เลยไม่ได้มองดูตัวนี้ วันนี้ว่างๆ เลยลองสำรวจดูว่าเป็นไงบ้าง

Umami คืออะไร?

Umami  เป็นตัว website tracking เหมือนกับ Google Analytics นั่นแหละ แต่ focus ที่เลือกความเป็นส่วนตัว คือจะไม่เก็บข้อมูลเรา ฉะนั้นก็ไม่ต้องทำ Cookie Consent

umami

ข้อดีคือ

  • เป็น Open Source สามารถเอาไปใช้งานที่โฮสตัวเองได้
  • ตัวสคริปต์ มีขนาดเล็กมาก เทียบกับ Google Analytics
  • เวอร์ชั่น Cloud (เสียตัง) ปัจจุบันยังเป็น Beta อยู่ เลยใช้งานได้ฟรี
  • ความเป็นส่วนตัว ไม่เก็บข้อมูลใดๆทั้งสิ้น
  • สามารถทำ custom event ได้
  • มีหน้าสถิติให้ดูสวยงาม
  • by-pass พวก Ad block ได้ (ผ่านการทำ Proxy หรือโฮสเอง)

หน้าตาสถิติ ก็จะประมาณนี้

ภาพจากเว็บ umami

การติดตั้ง Script ง่ายมาก คือแปะ JavaScript คล้ายๆ กันแหละ

<script async defer src="https://analytics.umami.is/script.js" data-website-id="<WEBSITE_ID>"></script>

จะโฮสเอง ก็ทำได้ง่ายๆ (เนื่องจากเขียนด้วย Node.js ก็จะง่ายกว่า Plausible ที่เขียนด้วย Elixir) ทำผ่าน Docker ได้ง่ายๆ

docker pull docker.umami.dev/umami-software/umami:postgresql-latest

ตั้งแต่ผมได้ใช้ Plausible ผมก็แทบจะไม่ได้ใช้ Google Analytics อีกเลย เนื่องจากเว็บของผม ไม่ได้ต้องการ Tracking อะไรมากมาย ผมแค่ต้องการดูยอดวิว ยอดเข้าชมแค่นั้น ไม่ได้ต้องการทำ campaign การตลาด ฉะนั้นตัว Google Analytics มันก็เลยเกินความจำเป็นผม และถามตัว Script มันใหญ่ ทำให้เว็บโหลดช้า แถมต้องมาทำ Cookie Consent อีก

บันทึกการทำ Proxy Plausible และ Cloudflare Workers
เนื่องจากตอนนี้เว็บของผมใช้ Plausible ทั้งหมด ตั้งแต่เว็บ Static ทั่วๆไป ที่ใช้ Gatsby, Next.js หรือเว็บล่าสุด ที่ใช้ Ghost ก็เลยลองมาเขียนเป็นบันทึกเอาไว้ Adblockers and using a proxy for analytics | Plausible docsA frequently asked question we get is, “why do

ทางเลือกของผมเลยชอบ Analytics ที่มันไม่เก็บ Cookie ไม่ต้องวุ่นวายกับ Cookie Consent ผมก็เลยเลือกใช้ Plausible ตลอด และก็เชียร์หลายๆ คนให้มาใช้เช่นกัน

พอได้มาลอง Umami แล้ว ก็พบว่า ก็เป็นอีกตัวนึงที่น่าสนใจไม่น้อย และก็เป็นอีกทางเลือกที่ดีเช่นกัน

ตัวอื่นๆที่เป็น Open Source ที่ใกล้เคียงกันและน่าสนใจ ก็เช่น

Plausible Analytics
Plausible is a lightweight and open-source Google Analytics alternative. Your website data is 100% yours and the privacy of your visitors is respected.
PostHog - The open source Product OS
PostHog is the all-in-one platform for building better products - with product analytics, feature flags, session recordings, a/b testing, heatmaps, and more.
Self-hosted website analytics | Ackee
Self-hosted, Node.js based analytics tool for those who care about privacy.
Matomo - The Google Analytics alternative that protects your data
Matomo’s the Google Analytics alternative that protects your data and your customer’s privacy. A powerful web analytics platform with 100% data ownership.
GoAccess - Visual Web Log Analyzer
GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.