Can i keep a log for 404 not found pages?


#1

Hi,

Can i keep a log for 404 not found pages?

Like that pattern:

date - url -how many time


#2

You should be able to use Google Analytics to get that info.


#3

I am already use Analytics. I should get the info on Analytics panel, right?


#4

No – if you’re using GA you get that data directly from the GA interface, rather than through the Discourse UI.

Edit: I made an assumption about what you meant by the Analytics panel.


(Bas van Leeuwen) #5

It’s not that easy to be honest.

http://www.lunametrics.com/blog/2014/08/19/404-errors-google-analytics-google-tag-manager/

You need to either make a custom javascript file to check if “Oops! That page doesn’t exist or is private.” exists, or change the 404 template to fire an event. So no, this is not out of the box and also it’s a bit fragile.

I would agree that this feature is useful; especially in the days directly after a migration.