{"repo":"ankane/ahoy","free":true,"listed":false,"github":"https://github.com/ankane/ahoy","clone":"git clone https://github.com/ankane/ahoy.git","description":"Simple, powerful, first-party analytics for Rails","language":"Ruby","stars":4483,"topics":["analytics","first-party-analytics","rails","visits","events"],"license":"MIT","category":"analytics","readme_excerpt":"Ahoy :fire: Simple, powerful, first-party analytics for Rails Track visits and events in Ruby, JavaScript, and native apps. Data is stored in your database by default, and you can customize it for any data store as you grow. :postbox: Check out Ahoy Email for emails and Field Test for A/B testing :tangerine: Battle-tested at Instacart Installation Add this line to your application’s Gemfile: And run: Restart your web server, open a page in your browser, and a visit will be created :tada: Track your first event from a controller with: JavaScript, Native Apps, & AMP Enable the API in config/initializers/ahoy.rb : And restart your web server. JavaScript For Importmap (Rails default), add to config/importmap.rb : And add to app/javascript/application.js : For Bun, esbuild, rollup.js, or Webpack, run: And add to app/javascript/application.js : For Sprockets, add to app/assets/javascripts/application.js : Track an event with: Native Apps Check out Ahoy iOS and Ahoy Android. Geocoding Setup To enable geocoding, see the Geocoding section. GDPR Compliance Ahoy provides a number of options to help with GDPR compliance. See the GDPR section for more info. How It Works Visits When someone visits your website, Ahoy creates a visit with lots of useful information. - traffic source - referrer, referring domain, landing page - location - country, region, city, latitude, longitude - technology - browser, OS, device type - utm parameters - source, medium, term, content, campaign Use the curren","default_branch":null,"files":null,"tree":[],"storefront":"/r/ankane","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ankane/ahoy/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."}