Last Updated: July 23, 2020
·
700
· 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:

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

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

More info at https://github.com/jsuchal/garelic

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