Skip to content

Instantly share code, notes, and snippets.

@laurakathleen
Last active October 13, 2016 16:43
Show Gist options
  • Save laurakathleen/bf58faa23300b9727754fdf46eb34b05 to your computer and use it in GitHub Desktop.
Save laurakathleen/bf58faa23300b9727754fdf46eb34b05 to your computer and use it in GitHub Desktop.

#Ahoy

##What's it for? Ahoy is a gem that tracks website users and stores information that can help to better understand your user.

##What does it do? Ahoy allows for numerous ways of tracking users and their actions across a website via: -A user's location (city, region, and country) -How long a user spent on a site -A user's number of clicks -A user's device and the browser they used to accesss your site -Other customizable features

##How can I use Ahoy? -JavaScript -Ruby -Native apps

##Setup: 1)In Gemfile, add: gem 'ahoy_matey' 2)In app/assets/javascripts/application.js, after jQuery, add: //=require ahoy 3)For PostgreSQL uses, run: rails generate ahoy:stores:active_record -d postgresql rails db:migrate

##Why Ahoy? Google Analytics offers similar features, as well as other alternatives such as Mixpanel or KISSMetrics, however, Ahoy offers a really quick, free, and more private option as it allows for data to be stored locally within the app.

##Helpful Resources: [Ahoy - Github]: https://github.com/ankane/ahoy [OmniRef]: https://docs.omniref.com/ruby/gems/ahoy_matey/0.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment