Identify 404 pagesI'm trying to work out a way to identify pages that are getting a 404 error when people try to go to them. One of the main reasons is to see the impact of unpublishing a page or group of pages.
I've considered using the page title, but since Clicky uses one title for a given url, it doesn't distinguish between before and after unpublishing a page.
Any advice would be welcome.
Posted Thu Mar 2 2017 4:29p by CSIRO
404 means the page didn't load. So that means the tracking code for Click won't load either. It won't be tracked.
You'd have to get a web log program like webalizer.org.
Posted Sun Mar 5 2017 7:27p by gladius9
It can load a 404 error page, which can include the tracking code and give a 404 response in the response header. For example, https://www.google.com/thisshouldbeanerror
Posted Sun Mar 5 2017 7:52p by CSIRO
Yeah but he was referring to the browser 404 error, not his 404 page.
Posted Fri Mar 10 2017 9:40p by gladius9
I assume you're talking about pages you unpublish from your own site on the same domain? If that's the case, you can do this by adding a custom error page to your site for 404 errors. If you're not familiar with this, I can elaborate further.
Due to the limitations of the forums, I'm going to host the html snippet on my google drive and put that as the single link I'm allowed to insert per post here.
Posted Fri Apr 14 2017 7:19p by akharbac
Oh, I forgot to mention...the 404 page must load without redirecting so you preserve the URL of the unpublished page, or this won't work. For example, on my domain, which I'm not quite ready to share yet, but I'll use a generic one here, if you go to
And that page doesn't exist anymore, the 404 page will load, and the URL is the same, hence the 404 page would load this code and track that the page doesn't exist anymore.
I use WordPress, and it has that behavior, but I'd have to look how to do it manually. Maybe your site has that set up already.
Posted Fri Apr 14 2017 7:31p by akharbac
You must be logged in to your account to post!