Here’s a quick and easy way to track broken links using Google Analytics.
It requires you to have
- Google Analytics account
- Google Analytics setup on your website
Locate you 404 page
- First step is to open up the 404 page on your website, so go ahead and try a link you know won't work like www.colorado.edu/your-site-name/fake-link
- Once you have the 404 page open, take note of the page title. For our website it starts with ‘This page was not found’
- Now log into Google Analytics
- On the left hand menu, navigate to (or search) and open ‘Behavior -> Site Content -> All Pages’
- Directly under the graph, to the right of ‘Primary Dimension’ select the ‘Page Title’ link
- Now use the search box to the right of the page to search for the page title of your 404 page, for example ‘page not found’ (the default on most sites)
- The results should show one page – your 404 page.
- Click on it to view the list broken links that have created a 404 error
- Now that you know which links are broken, you can find the working link and redirect the bad link to the good link.
- You can also add a secondary dimension to see the website that has the bad URL on it.
- To do this, click on the ‘Secondary dimension’ drop down list, search for ‘Full Referrer’ or click on ‘Behavior -> ‘Full Referrer’
- Beside each link you’ll now see the URL to the website that has the bad link.