Last Updated: July 23, 2020
· jsuchal

Use Google Analytics for Rails App Performance Monitoring

Step 1. Add this to your Gemfile

gem 'garelic'

Step 2. Add <%= Garelic.monitoring 'UA-XXXXXX-X' %> instrumentation in application layout template (before the closing </head> tag) like this:

    <!-- other rails stuff -->
    <%= Garelic.monitoring 'UA-XXXXXX-X' %>
    <!-- make sure you remove your old GA code! -->

Step 3. Go to Google Analytics > Content > Site Speed > User Timings

More info at

Note from Coderwall team: we've made up our own list of application performance monitoring tools.