Google Analytics Error Page Tracking
Contents |
Analytics Social Local Mobile Video Content Development Reports Fixing 404 Error Pages with Google Analytics Analytics 11 Feb 16 | Peter O'Neill Facebook0Linkedin311Google+201Twitter512 There how to find broken links with google analytics have been multiple blog posts written over the years on how how to find 404 errors to use Google Analytics to identify and fix 404 Error Pages. I have even written one myself google analytics view exceptions and it's a common slide in many of my talks. But with the newest features that are available within Google Analytics, these blog posts are due an update. Custom Variables
Google Analytics Error Tracking
vs Events The first question is whether to capture details of the 404 Error Page within page level customisations or as an event. My approach is to capture more information about the page using page level customisation. Since viewing a 404 Error Page is not an event, it should not be treated as one. Google Analytics tracking check broken links Step one in the GA tracking for Error Pages is to rename the page name to /error-page/404-error. This means all views of this page are grouped together, making them easier to identify and analysis becomes significantly easier. There are two key pieces of information to capture on each 404 Error Page. The first is the URL of the page and the second is the referrer to the page. Both are available as default Variables within GTM (Google Tag Manager) and so no developer support is required to capture them. The L3 Analytics approach is to capture the Page URL as a Content Grouping and the Referrer as either a Content Grouping or a Hit scoped Custom Dimension. Previously I would have stopped at that tracking, but an Error Page view should now also be captured as a Custom Metric. It will provide an easy way to see the total number of Error Page views for the website or broken down by any session/user dimension. Share this article Facebook0Linkedin311Google+201Twitter512 Relate
DataSending Data to Google AnalyticsUsing PluginsDebuggingTracking common user interactionsPage TrackingEvent TrackingSocial InteractionsApp / Screen TrackingUser TimingsException TrackingAdvanced TopicsCookies and User IdentificationCross-domain TrackingCustom Dimensions and MetricsRenaming the Global (ga) webmaster tools google ObjectWriting PluginsTasksIP AnonymizationUser Opt-outOfficial PluginsDisplay FeaturesEcommerceEnhanced EcommerceEnhanced link attributionLinkerSolutionsSingle Page ApplicationsContent
Google Analytics Account
ExperimentsResourcesCookie UsageLimits and Quotas FundamentalsAdding analytics.js to Your SiteHow analytics.js WorksCreating TrackersGetting and Setting Tracker DataSending Data
Google Tag Manager
to Google AnalyticsUsing PluginsDebuggingTracking common user interactionsPage TrackingEvent TrackingSocial InteractionsApp / Screen TrackingUser TimingsException TrackingAdvanced TopicsCookies and User IdentificationCross-domain TrackingCustom Dimensions and MetricsRenaming the Global (ga) ObjectWriting https://searchenginewatch.com/2016/02/11/fixing-404-error-pages-with-google-analytics/ PluginsTasksIP AnonymizationUser Opt-outOfficial PluginsDisplay FeaturesEcommerceEnhanced EcommerceEnhanced link attributionLinkerSolutionsSingle Page ApplicationsContent ExperimentsResourcesCookie UsageLimits and Quotas Products Google Analytics Tracking analytics.js Guides Exception Tracking This guide describes how to send exceptions using analytics.js. Exception tracking allows you to measure the number and type of crashes or errors that occur on your property. Implementation Exception hits can be https://developers.google.com/analytics/devguides/collection/analyticsjs/exceptions sent using the send command and specifying a hitType of exception. The send command has the following signature for the exception hit type: ga('send', 'exception', [fieldsObject]); Exception fields The following table summarizes the exception fields: Field Name Value Type Required Description exDescription text no A description of the exception. exFatal boolean no true if the exception was fatal. Example The following command wraps some logic that may fail in a try/catch block. If there's an error, it sends an exception hit to Google Analytics: try { // Runs code that may or may not work. window.possibiliyUndefinedFunction(); } catch(err) { ga('send', 'exception', { 'exDescription': err.message, 'exFatal': false }); } Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License. For details, see our Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Last updated February 4, 2016. GitHub Try Google Analytics samples Google+ Foll
Guides Blog About Our Name Our Philosophy & Process Our Team Careers Contact (713) 568-2763 Services Pay Per Click Advertising Search Engine Optimization Analytics & Reporting Web Design & Development Media Planning & Buying Social Media Marketing http://www.forthea.com/google-analytics-tutorial-how-to-find-404-errors-on-your-website/ Interactive Marketing Consulting & Strategy Portfolio Digital Marketing Guides Blog About Our Name Our http://www.labnol.org/internet/track-404-error-pages/13509/ Philosophy & Process Our Team Careers Contact Google Analytics Tutorial: How to Find 404 Errors on Your Website Forthea Interactive Marketing > Analytics > Google Analytics Tutorial: How to Find 404 Errors on Your Website Google Analytics Tutorial: How to Find 404 Errors on Your Website Posted by Ryan Chauvin on May 28, google analytics 2014 in Analytics 6 Comments Share this article: 5 Every webmaster knows that 404 errors are simply a part of life on the web, and while they're easy to ignore, there's real value in learning how to find 404 errors on your website. Together, these isolated problem spots can paint a larger picture and help you identify areas in which you can improve your website. How google analytics error to Find 404 Errors on Your Website with Google Analytics If you're looking for a solution to this ubiquitous problem, you've come to the right place. We've devised an eloquent way to take the first step in identifying the 404 errors on your site. This incredibly handy error report works on any Googel Analytics (GA) account and can save you the hassle of digging to find active 404 errors. Before we start, make you're logged into the GA account in question and click here: https://www.google.com/analytics/web/template?uid=Vwha4sfrRxS2Qg7f6Mokqg Select the profile view you'd wish to run the report with (we'll wait). Now initially, the report will show no data, but don't panic. We're not done yet. Find the edit tab at the top left of the report: This will bring you to the edit custom report screen. You'll need to scroll to the bottom and find the Filters section. To make this report work for you, you'll first need to go to your website and navigate to a page that doesn't exist. We’re fond of http://www.yourwebsite.com/whatever, but feel free to run wild with creativity here. Once you've found a 404 screen, just identify the page title (highlighted below). At Forthea, we've
PagesSite Clinic: An SEO Checklist for your WebsiteTracking Clicks in Emails Using Google AnalyticsSee How Many People are on your Website Right NowAdSense Click Tracking Data in Google Analytics Is Coming Soon If you change the URL of an existing page on your website, or delete it completely, visitors will get a 404 or “File Not Found” error when they try to access that page. The other reason why you have end up having 404 pages on your site is not in your control. Say your page URL is abc.com/xyz and another site links to that page but with a wrong URL, visitors will get a 404 when they click that link.
It is important that you fix your 404 errors are they offer a bad visitor experience and your site may also lose Google juice. Google gives you points for every incoming link but the benefit is lost if that link is pointing to a non-existent 404 page. Track the Missing 404 Pages on your Site If you are using Google Analytics, which you most likely are, you can use the same service to easily keep a track of all the 404 missing pages on your website. Let me show you how: You take your standard Analytics tracking code, the one that is already on your web pages, and add a few extra lines inside the script tag that will enable tracking for 404s. The modified code will generate a virtual pageview in your Analytics reports (see the above screenshot) that will not only provide you with the URL of the missing page on your website but also the URL of the referring site. script (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); /* Standard Analytics Code */ ga('create', 'UA-XXXXX-YY', 'domain.com'); ga('send', 'pageview'); /* Track 404 Errors */ var url = "/404/?url=" + window.location.pathname + window.location.search + "&from=" + document.referrer; ga('send', 'pageview', url); Please note that this code should only be added to your 404 template and not every page. To get a report of all the 404 pages on your site, go to your Google Analytics dashboard and choose Behaviour -> Site Content -> All Pages. Here select any date range and put /404 in the search