I've been in and out of Google Analytics (GA) for the past five or so years agency-side. I've seen three different code libraries, dozens of new different features and reports roll out, IP addresses stop being reported, and keywords not-so-subtly phased out of the free platform.
Analytics has been a focus of mine for the past year or so—mainly, making sure clients get their data right. Right now, our new focus is closed loop tracking, but that's a topic for another day. If you're using Google Analytics, and only Google Analytics for the majority of your website stats, or it's your primary vehicle for analysis, you need to make sure it's accurate.
Not having data pulling in or reporting properly is like building a house on a shaky foundation: It doesn't end well. Usually there are tears.
For some reason, a lot of people, including many of my clients, assume everything is tracking properly in Google Analytics... because Google. But it's not Google who sets up your analytics. People do that. And people are prone to make mistakes.
I'm going to go through six scenarios where issues are commonly encountered with Google Analytics.
I'll outline the remedy for each issue, and in the process, show you how to move forward with a diagnosis or resolution.
1. Self-referrals
This is probably one of the areas we're all familiar with. If you're seeing a lot of traffic from your own domain, there's likely a problem somewhere—or you need to extend the default session length in Google Analytics. (For example, if you have a lot of long videos or music clips and don't use event tracking; a website like TEDx or SoundCloud would be a good equivalent.)
Typically one of the first things I'll do to help diagnose the problem is include an advanced filter to show the full referrer string. You do this by creating a filter, as shown below:
Filter Type: Custom filter > Advanced Field A: Hostname Extract A: (.*) Field B: Request URI Extract B: (.*) Output To: Request URI Constructor: $A1$B1
You'll then start seeing the subdomains pulling in. Experience has shown me that if you have a separate subdomain hosted in another location (say, if you work with a separate company and they host and run your mobile site or your shopping cart), it gets treated by Google Analytics as a separate domain. Thus, you 'll need to implement cross domain tracking. This way, you can narrow down whether or not it's one particular subdomain that's creating the self-referrals.
In this example below, we can see all the revenue is being reported to the booking engine (which ended up being cross domain issues) and their own site is the fourth largest traffic source:
I'll also a good idea to check the browser and device reports to start narrowing down whether the issue is specific to a particular element. If it's not, keep digging. Look at pages pulling the self-referrals and go through the code with a fine-tooth comb, drilling down as much as you can.
2. Unusually low bounce rate
If you have a crazy-low bounce rate, it could be too good to be true. Unfortunately. An unusually low bounce rate could (and probably does) mean that at least on some pages of your website have the same Google Analytics tracking code installed twice.
Take a look at your source code, or use Google Tag Assistant (though it does have known bugs) to see if you've got GA tracking code installed twice.
While I tell clients having Google Analytics installed on the same page can lead to double the pageviews, I've not actually encountered that—I usually just say it to scare them into removing the duplicate implementation more quickly. Don't tell on me.
3. Iframes anywhere
I've heard directly from Google engineers and Google Analytics evangelists that Google Analytics does not play well with iframes, and that it will never will play nice with this dinosaur technology.
If you track the iframe, you inflate your pageviews, plus you still aren't tracking everything with 100% clarity.
If you don't track across iframes, you lose the source/medium attribution and everything becomes a self-referral.
Damned if you do; damned if you don't.
My advice: Stop using iframes. They're Netscape-era technology anyway, with rainbow marquees and Comic Sans on top. Interestingly, and unfortunately, a number of booking engines (for hotels) and third-party carts (for ecommerce) still use iframes.
If you have any clients in those verticals, or if you're in the vertical yourself, check with your provider to see if they use iframes. Or you can check for yourself, by right-clicking as close as you can to the actual booking element:
There is no neat and tidy way to address iframes with Google Analytics, and usually iframes are not the only complicated element of setup you'll encounter. I spent eight months dealing with a website on a subfolder, which used iframes and had a cross domain booking system, and the best visibility I was able to get was about 80% on a good day.
Typically, I'd approach diagnosing iframes (if, for some reason, I had absolutely no access to viewing a website or talking to the techs) similarly to diagnosing self-referrals, as self-referrals are one of the biggest symptoms of iframe use.
4. Massive traffic jumps
Massive jumps in traffic don't typically just happen. (Unless, maybe, you're Geraldine.) There's always an explanation—a new campaign launched, you just turned on paid ads for the first time, you're using content amplification platforms, you're getting a ton of referrals from that recent press in The New York Times. And if you think it just happened, it's probably a technical glitch.
I've seen everything from inflated pageviews result from including tracking on iframes and unnecessary implementation of virtual pageviews, to not realizing the tracking code was installed on other microsites for the same property. Oops.
Usually I've seen this happen when the tracking code was somewhere it shouldn't be, so if you're investigating a situation of this nature, first confirm the Google Analytics code is only in the places it needs to be.Tools like Google Tag Assistant and Screaming Frog can be your BFFs in helping you figure this out.
Also, I suggest bribing the IT department with sugar (or booze) to see if they've changed anything lately.
5. Cross-domain tracking
I wish cross-domain tracking with Google Analytics out of the box didn't require any additional setup. But it does.
If you don't have it set up properly, things break down quickly, and can be quite difficult to untangle.
The older the GA library you're using, the harder it is. The easiest setup, by far, is Google Tag Manager with Universal Analytics. Hard-coded universal analytics is a bit more difficult because you have to implement autoLink manually and decorate forms, if you're using them (and you probably are). Beyond that, rather than try and deal with it, I say update your Google Analytics code. Then we can talk.
Where I've seen the most murkiness with tracking is when parts of cross domain tracking are implemented, but not all. For some reason, if allowLinker isn't included, or you forget to decorate all the forms, the cookies aren't passed between domains.
The absolute first place I would start with this would be confirming the cookies are all passing properly at all the right points, forms, links, and smoke signals. I'll usually use a combination of the Real Time report in Google Analytics, Google Tag Assistant, and GA debug to start testing this. Any debug tool you use will mean you're playing in the console, so get friendly with it.
6. Internal use of UTM strings
I've saved the best for last. Internal use of campaign tagging. We may think, oh, I use Google to tag my campaigns externally, and we've got this new promotion on site which we're using a banner ad for. That's a campaign. Why don't I tag it with a UTM string?
Step away from the keyboard now. Please.
When you tag internal links with UTM strings, you override the original source/medium. So that visitor who came in through your paid ad and then who clicks on the campaign banner has now been manually tagged. You lose the ability to track that they came through on the ad the moment they click on the tagged internal link. Their source and medium is now your internal campaign, not that paid ad you're spending gobs of money on and have to justify to your manager. See the problem?
I've seen at least three pretty spectacular instances of this in the past year, and a number of smaller instances of it. Annie Cushing also talks about the evils of internal UTM tags and the odd prevalence of it. (Oh, and if you haven't explored her blog, and the amazing spreadsheets she shares, please do.)
One clothing company I worked with tagged all of their homepage offers with UTM strings, which resulted in the loss of visibility for one-third of their audience: One million visits over the course of a year, and $2.1 million in lost revenue.
Let me say that again. One million visits, and $2.1 million. That couldn't be attributed to an external source/campaign/spend.
Another client I audited included campaign tagging on nearly every navigational element on their website. It still gives me nightmares.
If you want to see if you have any internal UTM strings, head straight to the Campaigns report in Acquisition in Google Analytics, and look for anything like "home" or "navigation" or any language you may use internally to refer to your website structure.
And if you want to see how users are moving through your website, go to the Flow reports. Or if you really, really, really want to know how many people click on that sidebar link, use event tracking. But please, for the love of all things holy (and to keep us analytics lovers from throwing our computers across the room), stop using UTM tagging on your internal links.
Now breathe and smile
Odds are, your Google Analytics setup is fine. If you are seeing any of these issues, though, you have somewhere to start in diagnosing and addressing the data.
We've looked at six of the most common points of friction I've encountered with Google Analytics and how to start investigating them: self-referrals, bounce rate, iframes, traffic jumps, cross domain tracking and internal campaign tagging.
What common data integrity issues have you encountered with Google Analytics? What are your favorite tools to investigate?
Great post Amanda, thanks for sharing.
I'd like to add one to this list that is of particular nuisance to ecommerce websites: paypal referrals. Often times when you use Paypal as a checkout option for your customers, the source and medium of your transactions will be listed as "referral/paypal.com". The solution depends on the version of analytics you're using:
- Classic analytics: log in to paypal, click on the profile icon, go to "profile and settings",click 'My selling tools' and click on the 'update' link next to "Website preferences". Here, make sure to set "Auto return to on" and set the return URL to your thankyou page. Critically, make sure to append "?utm_nooverride=1" to the URL.
- Universal analytics: instead of going to paypal, you'll log in to your analytics account and navigate to 'admin'. Select the right property and click 'tracking info'. In the expanded sub-menu, click on 'Referral Exclusion List' and add paypal.com as a referral exclusion.
Thanks John! Paypal is the bane of many a Google Analytics user who also has ecommerce installed. Will have to try this with my next client who has the option to pay via PayPal!
I wish Google would do something to counteract the spam. It's getting to the point where I'm adding a new exclusion twice a week. It's seriously annoying.
A remark about your iframe mention - YouTube videos embed as iframes. I'm unaware of a way to bypass that, if you have one that'd be great. Good article, thanks for covering this.
I second this. Is there a way to bulk add "campaign source" to the filters so I do not have to keep setting up a new filter every time I discover a new form of spam? Or perhaps just a better way in general to get rid spam referrals in mass quantities?
I third this. The latest I spotted this week for a client: event-tracking.com. It looks remarkably like a Google Analytics documentation page and is a pain in the butt. For me, this is the #1 headache I'm having right now across all the different websites I manage!
What a good article,a lot of good and useful information. Thanks
A very useful information rather than affirm from the point of view of someone who is in these moments studying web analytics. A very practical and very solid approach. Nothing to refute.
Hey Graham,
I completely agree with the spam! It's getting ridiculous. With my personal websites which have loooow traffic (do as I say and not as I do ;) ) I would say the majority of the traffic is referral spam...which makes me really sad.
With YouTube videos, I'd suggest combing through what Phil Nottingham at Distilled has written; offhand I can't think of any workaround in particular. It's worth noting that embedding YouTube videos on your website is only one way of tackling video strategy, and the method you use for including videos really depends on your end game with the videos themselves.
Take a look at his posts here on Moz as well as his slideshare, I know he's more articulate than I am on all this video SEO. :)
Good post Amanda! One of the main headaches I had was because of subdomains -especially mobile ones- and how to treat them for having all the information I needed easily and fast. To know all the data, true and profitable data, and to identify all the problems we can have is extremely important when we talk about analytics. Best analytics for me are those I can use for getting better results in my marketing strategies, and if possible, in a small quantity :)
Hi Abel,
Thanks for the feedback! How have you been able to address different subdominans in analyzing? Personally I think it depends on whether you want to treat them separately (use different filtered views) or altogether (same view with advanced filter) and what metrics you want to see, as for some reports you need to have a segment created in order to separate data, and that can be difficult when we are looking at a specific group of pages.
Heh. This popped back up in my Mentions inbox with about 20 scraper sites. The gift that keeps on giving ....
Great Post. I would also add SPAM referrals to the list of headhaches, I quit using GA just because of them.
https://bit.ly/1GBeecC
Some great tips! I've been having trouble with my Google Analytics for a bit. Turns out my business partner was updating my Wordpress theme, and overwriting the installed code. Sometimes, it's a simple solution ;)
There's always that too. ;) Glad it was a simple fix!
Hi, Amanda,
Thanks for such a valuable post. This is really helpful. For one of my clients, i am getting the own site in top 5 referrals. I am sure that this post will help me in fixing the issues.
@John den Haan, one of the major issues that i encountered in the analytics data is getting paypal refarrals. The solution you provided really works and i resolved this issue for many of my clients.
Excellent post Amanda.
One of the biggest ongoing issues for my clients is GA referral and event tracking spam. I'm sure you come across this all too often (for example semalt.com & buttons-for-website.com). There are a number of good articles about the topic, but I'm curious on your take? Any recommendations?
Hey David,
Thanks, I'm glad you liked the post!
I have to say, I agree with the rest. I would personally try and block rather than filter, as filtering only keeps the data from coming into your Analytics rather than stopping it in the first place.
Jared recently wrote a great post on how best to do this here on YouMoz - https://moz.com/blog/how-to-stop-spam-bots-from-ruining-your-analytics-referral-data
Hi Amanda, thanks for highlighting the article which Jared wrote, it was very useful. It seems the best solution is a mix of filtering and blocking via a .htaccess file. It's just a shame that Google haven't come up with a useful solution yet. Can anyone recommend a decent plugin for Wordpress which filters spam traffic and comments?
Any advice would be helfpul.
Thanks for the mention, Amanda! :)
Why, of course, Annie. You've been in this game a long time, and definitely know what you're on about (and own some pretty killer shoes). :) I would do no less! Thanks for creating all the amazing resources you do!
Thank you so much for this article. Not being experienced in the SEO process I could explain the traffic from my own site. The Self Refferal port of your post finally explains it. Much appreciated.
Nice post Amanda with some great tips. I've used your points to eliminate self-referrals! I know it's stepping further outside the box but I'd always advocate the use of behavioral insight tools in conjunction with GA to eliminate the biggest headache of all - interpreting GA data and seeing what users are doing on your site. Lots out there such as Hotjar, Crazy Egg (basic insights) for SME's or Decibel Insight & IBM Tealeaf for large enterprises/corporates.
Absolutely, and that kind of insight is the sort that feeds directly into CRO as well. :)
I would like to know how GA counts bounce rate, if it shows high bounce rate, I think it counts unique visitors as a bounce rate which it not a good thing. It affect on business decisions.
Thanks fot the post!!!
exactly, this is a great post
Thank you! I'm going to go check mine now!
I am getting loads of referrals from porn websites in my google analytics account.. how do I stop that?
Great advice about the iframes!
Thanks Cynthia. ;)
Hey Amanda,
Thanks for sharing the post. It will surely help me for my future analysis and reporting as well. John den Haan, you made my day by sharing the paypal issue. This is the solution I was looking for since one month. I got the same issue with one of my clients analytics report.
Hi.. Amanda,
Great Post.
Can You help me For, What i do for improve my website traffic and booking using GA, Which thing i need to care in GA.
I perform all the thing like Blog Comment, Social Media, etc...
Great post Amanda you have nicely elaborated some of the common problems users face with Google Analytics, just want to add one more problem here that is tracking pageviews with websites that are based on Flash (although it is obsolete now). The users are basically staying on one page and the flash plugin renders data within it's body resulting in no to a few page views. To fix this issue we can use the virtual page view method and track the views properly with the Flash based websites.
I love moz most because it doesn't pander to click-bait and low-brow piectes. Great post, but is the "six" important to the story? Probably not. Let's dump listicle headlines.
Thanks Amanda for your great post.
I've something to ask. I'm using WordPress CMS and using JetPack plugin. It shows stats of my blog. I'm also using Google Analytics. But I'm getting two different stats on JetPack and Google Analytics. Why?
Great article Amanda!
We seem to have another problem on our website, with incredibly high bounce rate as of April 21, 2015, here's what happened:
Our website bounce rate is usually around 38-40%, but as of January 2015, when we implemented the GTM tags, first we saw a major drop in BR to around 6-7%, then when moving the tags around on April 21, we’ve seen a sharp increase in the bounce rate to around 60%, these are the steps we took:
1. We had GA at the end of the html code before </body>
2. We included GTM at the top of the body after <body>
3. We disabled the old GA and add it the new to the GTM
4. We had bounce rate problems so we decided to disable the GA code inside GTM and re-enable the old GA code at the end of the html
5. We moved the GA code to the head before </head>
6. We noticed that we are using the standard analytics code and we update the code to universal analytics
Any idea as to why we are experiencing these crazy high bounce rates?
Many thanks!
Hey Rarraparra,
I'm thinking outloud here, so I will probably talk in circles a bit as I puzzle this out.
Without looking directly at the setup and knowing the history as well as all the variables at play, it's quite difficult to say. If you were using the async GA library, the library before the current 'Classic' implementation, that could have been skewing your bounce rates...but having it implemented lower on the page should've meant you had a higher bounce rate with the async code implemented, than now having a higher bounce rate with universal analytics installed.
If bounce rate is your only issue with the GTM implementation, I'd see if you can narrow it down to a particular page set and diagnose from there. It could be you were misreporting before, or the tag is implemented on new landing pages it wasn't on before. For example, if it wasn't on your blog before but now it is, that could affect bounce rate.
Remember, bounce rate is a relative metric - having a high bounce rate on a page doesn't necessarily mean something is bad or wrong! It could mean people are finding your contact information and getting in touch, which is what you want them to do, or they're reading the blog post you shared and then leaving, which is fine as well...
Amanda
Really..really..really The best of article..thanks @Amanda king.
I love moss blog it, always gives us something new in SEO, you should target GA for all the websites, I have a website https://www.feecreative.com/ its blog indexes after a long time please suggest me something. We design high quality of website in Hong Kong
I totally understand what you're saying with relation to using Iframes and Analytics not playing well together, however when using video technologies like YouTube & Vimeo it's not always possible to avoid using them. Looking forward to a new embed form from both sides.
Good post Amanda!
Please comment on some issues we may have with google analytics and how to fix it. Those who are a little new to this world, sometimes we do not know when we do to solve some of these problems arises and truly is a big headache.
Every day I learn something new and I like that.
Thanks for your article.
Thanks for sharing this post! I found it very useful. I would also add SPAM referrals to the list of headhaches...
Heya,
While not directly in the post, there is a recent article here on Moz by Jared on potential ways to deal with spam referrals - check it out for more detail than I'd be able to offer! https://moz.com/blog/how-to-stop-spam-bots-from-ruining-your-analytics-referral-data
Very informative post.
Hi Amanda, I was curious what you consider to be an unusually low bounce rate? Anyways, great article, very well written. I do get tired of sorting all the subdomain referrals from my own site. I'm going to put your filter to use.
Heya Yipyo -
Generally an overall bounce rate of 10% or less raises my eyebrows, and I start getting suspicious around 20%. That's me - others may have different benchmarks depending on the industry or the type of website. :)
Great post! I've always felt that bad data is worse than no data. Recently our analytics were skewed due to a ton of fake overseas traffic via a content aggregator. Luckily we were able to quickly alleviate the issue by simply blocking their unique IPs.
Absolutely agree, James. With no data, you're making decisions based on your gut and previous experience, whereas with bad data, you're making choices on what you think is correct, but isn't. Also, yay for blocking IPs!
I would caution blocking IPs. Many spammers use IPs and then the IPs get dumped and reused by legit sources. If the traffic isn't direct, you could just block the campaign source (if referral). If it is direct, and you don't have a hostname include filter, check the list of your hostnames showing up (in Behavior) and you may see some that you don't own.
Drew, good point. Both potential solutions to spam visits are incomplete, then.
Sorry, I meant "COULD NOT explain" above.
Glad to hear my tips helped!
of course helped a lot!
Hi Amanda
Thanks for the post! Helped clear up a few things up :) We have just recently blocked self referrals which has helped a lot!
I was wondering if you could give me some advice please? Since the mobile algorithm change our social referrals (mainly twitter and LinkedIn) have dropped by well over 50%. Do you think the two are related / have any other ideas of what could have caused this?
Hi Michaela,
I think you're walking into some dangerous correlative territory right now. I would not expect social referrals to be affected due to the mobile algo update. Instead, I would look towards a few social-specific things:
-have you started/stopped using campaign tags or URL shorteners?
-has your social calendar changed recently? Posting more frequently, less frequently, at different times, different post types?
I'd look to analyse specifically social traffic trends and speak to your social team about what's been happening at least in the last quarter. I'd also look at the value of the social traffic you have been receiving. Is it that you're receiving less traffic, but they're more valuable? Do they convert at the same/lower/higher rate as previous social traffic before the drop? If you're retaining your valuable customers and have lost the fluff traffic, I'd say that's a good outcome, and wouldn't necessarily sweat about the traffic loss. (If you haven't already, create a segment in your Google Analytics profile specifically for social traffic - and double check the 'social' channel grouping in the Multi-Channel Funnels report accurately reflects all social channels visitors are coming in through.)
Hope that helps! :)
Hi Amanda
Thanks for clearing that up! I am glad that is unlikely to be the case. From your other points I am at a loss, no aspects have changed that I can see...
Definitely going to look at the value of the existing leads, great point!
Will keep on looking further into your points, thank you so much :)
Happy to help! With a situation like that, it's hard to give a firm diagnosis unless I have access to the Analytics and the marketing team to understand any changes you might have made around that time.
While nothing may have changed with social, I'd confirm with other teams if you can (namely any paid campaigns), and also use segments to take a look at traffic to see if any other traffic segments rose around the same time your social referrals dropped.
That is great, thanks again Amanda:) !
Great post Amanda.
Do you have any thoughts on the impact of having 2 instances of Google Analytics (both universal, with different account numbers) on bounce rate? The rate is close to 0% on most pages....seems highly unlikely.
Hi Emily, Had this convo over Twitter as well. I've not personally had issues with 2 different Google Analytics properties affecting bounce rate, though Google has said having 2 instances installed can create data inconsistencies.
If you have event tracking installed on all pages and one of them triggers on-load, or on an action most people take, your bounce rate will be quite low, as a bounce is calculated on interaction and not pageviews specifically.
GA was not showing proper report about website. It shows huge visitors traffic which is complex & incorrect. In my case, it shows high bounce rate but when I used GoStats it shows genuine report in a real time & shows exact bounce rate.
Thanks for this, very insightful. With regards to item four, I often refer to several different visitation monitoring systems before making up my mind or not as to whether a spike is real or not; the built-in analytics on a site can often give insights that Google Analytics does not (& v.v!).
Thanks Toby
Good point about the traffic spikes. I always like when I can see a trend from more than one source before pulling the trigger on anything. :)
Well executed! Right now my headaches is I am getting too much spam referral traffic and looking to fix it. I have tried .htaccess solution which I got from Internet. But still this traffic coming every day. Anyone help me on this?
I like anything that helps with getting good stats out of GA!
It almost seems today you need an engineering degree to get Google Analytics to provide you accurate data with all of the internal and external factors going on that you need to set up filters and segments for.
You can't simply install and get accurate details about your traffic and website performance anymore out of the box. Referral spam, Not Provided...ey ey ey!
I wish cross-domain tracking with Google Analytics out of the box didn't require any additional setup.
How about sub-domain tracking like www.domain.com, store.domain.com, domain.com/blog/ etc
Hey Oldest_SEO, generally subdomains are tracked out of the box, as it's not typically considered cross-domain as such.
The places I've found issues, as I mention, is if you have a subdomain that is hosted elsewhere on a different ISP - like for example, if have a hosted mobile site or ecomm platform managed by a third party. Hence why I suggest including the full referrer - this may catch any subdomain issues you have. :)
Thank you so much for this article.
The truth is that you have investigated this aspects: "self-referrals, bounce rate, iframes, traffic jumps, cross domain tracking and internal campaign tagging" on a way so explicative for us. I think that the majority of this metrics don't influde in SEO position but it's only my unexperted opinion.
thanks for sharing such a wonderful and useful information.
Thanks amanda.Good post.
Thank you so much for this article!