Ruby on Rails - How to build analytic platform on Ruby on Rails with ease (Bahasa Indonesia)

Please download to get full document.

View again

of 27
76 views
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.

Download

Document Related
Document Description
1. Presentasi EPR Hi! Nama Saya Andreas Arnol! 2. Topik yang dipilih? ● Bingung ● Cemas ● Gelisah 3. Came up with an Idea 4. Topik Yang Dipilih HOW TO BUILD…
Document Share
Document Transcript
  • 1. Presentasi EPR Hi! Nama Saya Andreas Arnol!
  • 2. Topik yang dipilih? ● Bingung ● Cemas ● Gelisah
  • 3. Came up with an Idea
  • 4. Topik Yang Dipilih HOW TO BUILD ANALYTIC PLATFORM ON RUBY ON RAILS WITH EASE
  • 5. QUESTION? Kenapa ambil topik ini?
  • 6. Analytic? Why don't we use Google Analytic ?
  • 7. GEM YANG DIGUNAKAN AHOY + CHARTKICK + GROUPDATE BUKAN
  • 8. Ahoy Ahoy adalah sebuah analytic gem https://github.com/ankane/ahoy
  • 9. Mudah digunakan Kenapa Menggunakan Ahoy? Mudah dikostumasi Support berbagai macam database (PostgreSQL, MySQL, SQLite, MongoDB) Fitur Cukup Lengkap Support JSONB untuk versi PostgreSQL 9.4 ke atas
  • 10. HOW IT WORKS? VISITS EVENTS
  • 11. VISITS “Ketika seseorang mengunjungi website, Ahoy akan mencatat visit” “Visit akan dibuat 4 jam sekali (default) semenjak user tersebut mengunjungi website”
  • 12. VISITS SCHEMA
  • 13. EVENTS “Events untuk mencatat setiap events yang terjadi (click atau page visit)”
  • 14. EVENTS SCHEMA
  • 15. INSTALASI #1 Masukan baris kode berikut kedalam Gemfile Gem “ahoy_matey” Lalu masukan baris kode berikut pada application.js sesudah //= require jquery //= require ahoy
  • 16. INSTALASI #2 POSTGRESQL Rails 4 + PostgreSQL 9.4 Rails g ahoy:stores:active_record -d postgresql-jsonb Rails 4 + PostgreSQL 9.3 kebawah Rails g ahoy:stores:active_record -d postgresql Rake db:migrate
  • 17. INSTALASI #3 JAVASCRIPT Ahoy.track(“Buku”, { title: “Tsubasa Pilek” }); Atau track event secara otomatis Ahoy.trackAll(); RUBY Ahoy.track “Buku”, title: “Tsubasa Pilek”
  • 18. Some of the features Kostumasi ? Rails g ahoy:stores:custom Tambah Field Baru?
  • 19. More Information? https://github.com/ankane/ahoy
  • 20. Chartkick Chartkick merupakan sebuah gem untuk membuat chart.
  • 21. How to use Tambahkan baris kode ini kedalam Gemfile gem "chartkick" Google Chart / High Chart tergantung selera <%= javascript_include_tag "//www.google.com/jsapi", "chartkick" %> <%= javascript_include_tag "path/to/highcharts.js", "chartkick" %> Google Chart High Chart
  • 22. Jenis Jenis Chart dalam Chartkick Line Chart <%= line_chart User.group_by_day(:created_at).count %> Pie Chart <%= pie_chart Goal.group(:name).count %> Geo Chart <%= geo_chart Medal.group(:country).count %> MORE INFORMATION https://github.com/ankane/chartkick
  • 23. Group Date Mengelompokan data berdasarkan hari, minggu, jam, dan lainnya Gem “groupdate”
  • 24. List Group ● Second ● Minute ● Hour ● Week ● Month ● Year ● Etc User.group_by_day(:created_at).count User.group_by_week(:created_at).count CONTOH MORE INFORMATION https://github.com/ankane/groupdate
  • 25. REFERENSI ● https://github.com/ankane/groupdate ● https://github.com/ankane/chartkick ● https://github.com/ankane/ahoy CONTOH PROGRAM https://yuksl.herokuapp.com/
  • 26. ANY QUESTIONS?
  • 27. THANK YOU!!!
  • Search Related
    We Need Your Support
    Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

    Thanks to everyone for your continued support.

    No, Thanks