How to set up Google Analytics real time alerts

Table of contents for how to set up Google Analytics real time alerts

  1. Introduction to real time alerts
  2. Steps to sign up for StatsGlitch real time alerts tool
  3. Steps to set up real time alerts using StatsGlitch
  4. Steps to create real time alerts using the preset in StatsGlitch
  5. Steps to create auto generated real time alerts
  6. Steps to create custom real time alerts in StatsGlitch
  7. Email notifications by StatsGlitch

Introduction to real time alerts

In this article, we will discuss how to set up real time alerts in Google Analytics reports. We have already seen how real time reports work in my previous article: Real Time Reports in Google Analytics Tutorial

Let’s see how we can set up alerts on real time reports. These alerts will help us identify if there are sudden spikes in traffic on a specific time period, if there are no conversions on a specific day, and also validate how your marketing campaigns are working.

Normally, Google Analytics reports any abnormal activity on your website within 24 hours of detecting it. However, 24 hours is a long time for the issue to be unreported, this could lead to a huge loss of traffic and also sales if you own an ecommerce website. Real time alerts work best in such cases where issues need to be reported immediately.

Currently there is no option in Google Analytics to set up real time alerts. You can use APIs to do it but this requires a lot of coding knowledge. There are many third-party tools that can help us set up real time alerts. One such tool is StatsGlitch, which is a paid tool, but they also have a free trial program for 14 days.

Steps to sign up for StatsGlitch real time alerts tool

Step-1: Navigate to StatsGlitch and then click on ‘Sign-up’ at the top right-hand side.

statsglitcg signup

Step-2: Scroll down the page and then click on the ‘Start a 14-day free trial’ button under the ‘Agency’ plan:

Pricing plan

Step-3: Signup for their 14-day free trial program using your credentials.

statsglitch free trial 1

Step-4: Enter your name, email address and password and click on the ‘Sign up’ button.

Terms and conditions

Step-5: The next step is to link it to your Google Analytics account.

link to Google analytics 1

Step-6: Sign in with your Gmail account and allow access for StatsGlitch.

allow access to statsglitch 1

Step-4: Once access is provided, you will land on the manage alerts dashboard, as shown below:

Alerts dashboard 1
Get weekly practical tips on GA4 and/or BigQuery to accurately track and read your analytics data.

 

Steps to set up real time alerts using StatsGlitch:

Step-1: Click on ‘Create your first one’ in the manage alerts dashboard after your sign up is completed.

create first alert

Step-2: A popup like below will appear when you click on ‘Create your first one’. Select ‘Real- Time alert’ from the options.

real time alert 1

Step-3: You can either choose a preset or create a custom alert. To create alerts using a preset alert, click to choose.

predefined real time alerts 1

Note that presets are the predefined alerts, that are based on different criteria like a spike in pageviews, email campaign spike, Facebook pageviews spikes, etc.

Step-4: To create a custom alert, scroll to the bottom of the page and select custom alert.

custom alerts

Steps to create real time alerts using the preset in StatsGlitch

Step-1: To create real time alerts using the preset, you can either select any options provided.

predefined real time alerts 1

Step-2: Let’s select ‘Website Active Users Spike’, then select ‘Choose’.

website active users 1

Step-3: In the set up section, select the view. Since Google Analytics is linked to this tool, it will show all the Google Analytics views that the user has access to.

Select the view 1

Step-4: Since we have chosen the preset of website active users spike type. Let’s set up alert when active users are greater than 20.

Active users alert

Step-5: You also have an option to add filter to the alerts that you are setting up. Click on ‘Add filter’.

Add filter

Step-6: In the notification settings, you can select the frequency, email, time zone, as shown below:

notification frequency 1

Step-7: In the notification frequency, you have an option to set it up for different minutes as shown below:

Notification frequency settings 1

Step-8: Additionally, to set up alerts you can also integrate with Zapier, you would need an API key for it.

Integrations 1

Step-9: Finally, click on the ‘Save alert agent’ and you are done with setting up first real time alerts.

Save alert 2

Step-10:  Once the alert is set up, you can view it in the dashboard as shown below:

real time alert dasboard

Step-11: You can click next to the status, this allows you to edit, duplicate or delete your alert that you have set up.

Edit status

Steps to create auto generated real time alerts

Step-1: Click on ‘Auto generate’ in the managed alerts agents.

Auto generate events 1

Step-2: Based on the type of business, you can select any of the options below to set up your alerts.

Alert type 1

Step-3: Now, you have to select your GA view for which you are setting up real time alerts in the projects section and click on ‘Next’.

project settings 1

Step-4: In the next step, you can choose the type of alert that you would like to set up and click on ‘Next’.

Alert notification 1

Step-5:  Depending on the type of alert you would like to set up, you can select from the predefined options available.

select the interested alerts 1

Step-6: You will have a preview of the real time alert you have set up. Click on ‘Confirm and finish’.

confirm and finish alert 1

Steps to create a custom real time alert in StatsGlitch

Step-1: Navigate to the dashboard and click on ‘New alert agent’.

New Alert agent

Step-2: A pop up like below will appear when you click on ‘Create your first one’. Select ‘Real-time alert’ from the options.

real time alert 1

Step-3: Scroll to the bottom of the preset option and click on ‘Custom alert’.

custom alerts 1

Step-4: You can now set up the alert based on the metrics and filters of your choice. For this example, let’s say we create a custom alert for total events equals to 10 and it doesn’t contain any not set in the source dimension.  Below is the configuration:

Total events alert

Step-5: Set the frequency for the email to be sent, provide email address and time zone in the notification settings.

custom notification alert

Step-6: Click on ‘Save alert agent’.

Email notifications by StatsGlitch

Every time your criteria is met in the real time alerts, an alert email will be sent to the email address provided in the notification section.

You will receive an email something like below in your inbox:

statsglitch email notification

When you click on the investigate alert, it will redirect you to your Google Analytics property real time reports section.

Congratulations! You have now learnt how to set up real time alerts using the StatsGlitch tool and keep track of the real time alerts.

Related Article: Google Analytics Custom Alerts with Examples

My best selling books on Digital Analytics and Conversion Optimization

Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.

Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.

Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.

Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.

About the Author

Himanshu Sharma

  • Founder, OptimizeSmart.com
  • Over 15 years of experience in digital analytics and marketing
  • Author of four best-selling books on digital analytics and conversion optimization
  • Nominated for Digital Analytics Association Awards for Excellence
  • Runs one of the most popular blogs in the world on digital analytics
  • Consultant to countless small and big businesses over the decade