Intro

When your application has gone live, you will probably want some way of monitoring it. For example, it would be very helpful if you were able to see how many users are visiting your site, where they are visiting from, or if it is even still running at all. This article will go through some free tools that can help you accomplish just that.

Google Analytics

Google Analytics can help check how many visitors you get, which location (both geographic and links) they are coming from, and what time people tend tovisit. To get started, create an account here: https://analytics.google.com/analytics/web/

The website has a lot of detailed guides on how to use it, but once you see the graphs it should be pretty self explanatory to find the basic information you need. To add Google Analytics to your site, you basically just need to add a JavaScript tag to your website. If you followed the Ruby on Rails tutorial on this site, this can be put in your views files found in /applicationfolder/app/views/. The application layout file is recommended since elements in that file should show up on every page. To get this code snippet, go to Admin > create and account, then create a new property. Fill out the input boxes to generate your script. You can then find it in Admin under the property section under Tracking Info.

It can take 24 hours for it to start working. Please note that AdBlocker addons can prevent Google Analytics from tracking you (this also means other users using adblocker may not be tracked as well). If you are having issues with this, I would recommend download the Google Tag Assistant addon (or other Google Analytics addons) since it can help provide you more information on any errors your website may be having with the script.

Uptime Robot

A very simple free service that checks your website every once in a while to see if it is down. You can sign up at their website here: https://uptimerobot.com/ and follow their instructions to send you email notifications whenever a website is detected to be down.

Nginx Amplify

If you have setup your Nginx server in the previous articles, you can use this free tool to monitor your server. You can get information on how many visitors/connections you have, what kind of errors users are encountering, how often, and how much of your server’s resources are being used. It is a helpful tool to help you monitor the health of your server. You can sign up at their website here: https://amplify.nginx.com/login and follow their instructions to set this up. It is very fast to setup and their instructions are very clear and straight-forward. Once you have set it up, you can log into their website to check the status of your application at your convenience

Navigation

The next article can be found here. Previous article is here.