Skip to content
AtlanticBT Monogram Atlanticbt.com
Menu
July 7, 2016

How to Exclude StatusCake Bots from your Analytics

At Atlantic BT, we use Google Analytics as our primary analytics platform and StatusCake to monitor our page speeds, load times, and site performance. One day, I noticed something was a little off.

StatusCake claims not to load the Google Analytics scripts, but what did we see after turning on the service? A steady stream of direct/none, 1 page per session, 100% bouncing, 0 second time on site visits to the homepage—clear evidence of their bot messing up the traffic! At the same time, StatusCake was still tracking in Google Analytics.

Statuscake Google Analytics

 

 

I speculate that this could be because our analytics script is executed through Google Tag Manager, and may be skipped by their “excluding analytics script” logic.

To be safe, I tried doing a Google search. Surely this was happening with other websites. When I looked through the results, I found nothing other than articles from StatusCake itself saying I didn’t need to do anything at all to exclude them from Google Analytics. I knew that was wrong. Anyway…

…Here’s How I Fixed It:

I found that, by creating a User Agent variable in Tag Manager and pulling it into analytics as a custom dimension, you can single out StatusCake’s User Agent and exclude it from your view. Here are 4 easy steps to exclude StatusCake bots from your analytics:

Step 1:

Create the Custom Dimension in Analytics

Once you’re in Google Analytics, you need to create custom dimensions. Custom dimensions can be configured in the admin area, under property settings.

statuscake2

Once you’re there, add a custom dimension called “User Agent” and set the scope to Session level.

statuscake3

Make sure to take note of the Index Number. You’ll need this in Step 3.

Custom Dimension Index Google Analytics

 

Step 2:

Create a User Agent Variable in Tag Manager

Next, go over to Tag Manager and create a new Javascript variable with the Global Variable Name of navigator.userAgent.

statuscake5

Step 3:

Update Analytics Tag to Pull in User Agent

Remember that Index Number you noted in Step 1? Now you get to use it. Go into your general Analytics tag. Under More Settings → Custom Dimensions, add the dimension number from analytics to the index field, then add your new {{User Agent}} variable in the Dimension Value.

Tag Manager Custom Dimension Analytics

 

Once you’ve done that, be sure to save and publish!

Step 4:

Exclude Bots!

Now, User Agent data will be pulled in as a dimension in Analytics. To exclude StatusCake, make a filter that looks like this:

statuscake7

Now you can revel in your accurate, uninflated metrics once again.

BONUS: 

Make a Custom Report!

This simple report is a good way to quickly identify other bot user agents. Look for repeat visits, 100% bounce rate, no time on site and one page per visit. These are likely bots you can exclude. To make one yourself, apply this report to your analytics profile:

User Agent Google Analytics Report

 

And you’re done! Once you go through these steps, you can prevent those annoying bot hits from messing with your data. If you want further help with your marketing campaigns and the monitoring of it, Atlantic BT is here to help. Our marketing experts can help you with automation, personalization, marketing analysis, and provide performance reports to help you grow even further. Be sure to contact us to get started.

The Atlantic BT Manifesto

The Ultimate Guide To Planning A Complex Web Project

Partner With Us

Ready for modern web technology and a sharp, user-friendly design? We want to give you exactly that. Contact us to get started.

Contact

Insights

Atlantic BT's Insights

We’re sharing the latest concepts in tech, design, and software development. Learn more about our findings.

Questions & Answers

1 How much does a digital strategy cost?
Here is a short answer: Digital strategy can be created internally or externally (with the help of outside partners). Internally, depending on how big your organization is and how transformative your strategy is, the costs could vary greatly.
Learn More
1 How do I improve my digital strategy?
The first step to improving your digital strategy is understanding what’s not working with your current digital strategy. Are you not hitting your new customer acquisition goals? Revenue by customer?
Learn More
1 How do I create, organize, and write a digital strategy?
Nearly every time, good execution outperforms good ideas. For the most effective execution, it's essential to have a strong underlying strategy. Try organizing an offsite multi-day retreat with a facilitator.
Learn More
1 How do I avoid digital strategy pitfalls?
Like any strategy, there are more ways to find pitfalls than success. The first step in planning is to clearly articulate the overall strategy in a way that is easy to understand at all levels of the organization.
Learn More
1 How does digital transformation help blue ocean strategy?
If both blue ocean strategy and digital transformation strategy exist; the blue ocean strategy would be the top level strategy, while digital transformation would be a necessary component of achieving the blue ocean strategy. To fully answer this question, let's first define Blue Ocean Strategy.
Learn More
1 Why is having a digital strategy important?
Digital strategy is important because there are few sectors technology won’t ultimately touch or transform. If your organization isn’t paying attention to digital strategy, you will fall behind and potentially reach a point where you are obsolete relative to competitors.
Learn More
1 What is Digital Transformation Strategy?
One of the interesting things about Digital Transformation is everyone seems to define it a little differently. The reality is that consultants sometimes label a new marketing plan a digital transformation strategy -- it’s not.
Learn More