{"repo":"BaseSecrete/active_analytics","free":true,"listed":false,"github":"https://github.com/BaseSecrete/active_analytics","clone":"git clone https://github.com/BaseSecrete/active_analytics.git","description":"First-party, privacy-focused traffic analytics for Ruby on Rails applications.","language":"Ruby","stars":514,"topics":["rails","analytics","privacy","trafic-analytics","ruby"],"license":"MIT","category":"analytics","readme_excerpt":"ActiveAnalytics Simple traffic analytics for the win of privacy. NO cookies NO JavaScript NO third parties NO bullshit ActiveAnalytics is a Rails engine directly mountable in your Ruby on Rails application. It doesn't reveal anything about specific visitors. It cannot be blocked by adblockers or other privacy-protecting extensions (and doesn't need to). ActiveAnalytics lets you know about: Sources : What are the pages and domains that bring some traffic. Page views : What are the pages that are the most viewed in your application. Next/previous page : What are the entry and exit pages for a given page of your application. Browser statistics : What browsers and which versions are visiting your site. Installation Add this line to your application's Gemfile: Then execute bundle and run the migration: Add the route to ActiveAnalytics dashboard at the desired endpoint: By default ActiveAnalytics will extend ActionController::Base , but you can specify a custom base controller for the ActiveAnalytics dashboard: The next step is to collect trafic and there is 2 options. Record requests synchronously This is the easiest way to start with. However it's less performant since it triggers a write into your database for each request. Your controllers have to call ActiveAnalytics.record request(request) to record page views. The Rails way to achieve is to use after action : In case you don't want to record all page views, because each application has sensitive URLs such as password reset a","default_branch":null,"files":null,"tree":[],"storefront":"/r/BaseSecrete","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/BaseSecrete/active_analytics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}