If you have your own website, then you already know how important it is to make sure your tracking your data with Google Analytics. And even more than that, you need to make sure that you're protecting your Google Analytics account too!
Unfortunately, I didn't know that and I learned the hard way! This month, I was putting together the information for my monthly "Blog Stats & Income Report" and I realized that none of my numbers made sense. That's when I realized, I had been hacked :(
So, being the DIY diva that I am, I immediately began my research. I needed to learn how to not only fix my account stats, but also learn how to protect my account from future spam.
Ultimately, I learned that there are five changes you need to make to protect your Google Analytics account to ensure that all of the data you're collecting is not only correct, but that it's only coming from your website.
1. Create a valid hostname filter
The first thing that I learned is that you need to create a valid hostname filter. The reason being, you want to ensure that you're only tracking hits that come from your website and nowhere else.
A hostname is the domain name that a visitor is on when Google Analytic tracks a session. So for Perfectly Ambitious, my hostname is perfectlyambitious.com.
If you have one or more subdomains, you will also want to include these in your valid hostname filter too. When you do this, you'll need to create a regression expression similar to this one:
perfectlyambitious\.com|perfectlyambitious\.blogspot\.com|translate\.googleusercontent\.com
Just make sure that you are including a vertical break between each domain and a back slash before any period.
- 6:00:00 PM
- 2 Comments