# Can I keep a log for 404 not found pages?

**URL:** https://meta.discourse.org/t/can-i-keep-a-log-for-404-not-found-pages/69824
**Category:** Support
**Created:** [2017 年9 月 11 日 17:26 UTC](https://meta.discourse.org/t/can-i-keep-a-log-for-404-not-found-pages/69824 "2017-09-11T17:26:37Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### 作者： ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)
#### 发布日期： [2017 年9 月 11 日 17:26 UTC](https://meta.discourse.org/t/can-i-keep-a-log-for-404-not-found-pages/69824/1 "2017-09-11T17:26:37Z")

</div>

Hi,

Can i keep a log for 404 not found pages?

Like that pattern:

`date - url -how many time`

---

<div class="post-metadata">

### 作者： ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### 发布日期： [2017 年9 月 11 日 19:24 UTC](https://meta.discourse.org/t/can-i-keep-a-log-for-404-not-found-pages/69824/2 "2017-09-11T19:24:16Z")

</div>

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

---

<div class="post-metadata">

### 作者： ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)
#### 发布日期： [2017 年9 月 11 日 20:29 UTC](https://meta.discourse.org/t/can-i-keep-a-log-for-404-not-found-pages/69824/3 "2017-09-11T20:29:18Z")

</div>

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

---

<div class="post-metadata">

### 作者： ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### 发布日期： [2017 年9 月 11 日 20:30 UTC](https://meta.discourse.org/t/can-i-keep-a-log-for-404-not-found-pages/69824/4 "2017-09-11T20:30:42Z")

</div>

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.

---

<div class="post-metadata">

### 作者： ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)
#### 发布日期： [2017 年9 月 12 日 08:03 UTC](https://meta.discourse.org/t/can-i-keep-a-log-for-404-not-found-pages/69824/5 "2017-09-12T08:03:13Z")

</div>

> [@HAWK](#):
>
> You should be able to use Google Analytics to get that info.

It’s not that easy to be honest.

> **[AI Services for Enterprise Transformation | Bounteous](https://www.bounteous.com)**
>
> Bounteous is an AI services firm helping enterprise leaders turn AI into measurable business outcomes through engineering, experience, and data.

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.

---

<div class="post-metadata">

### 作者： ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### 发布日期： [2019 年1 月 7 日 17:22 UTC](https://meta.discourse.org/t/can-i-keep-a-log-for-404-not-found-pages/69824/6 "2019-01-07T17:22:22Z")

</div>

We’re about to customize our 404 page using tips from: [Customize the 404 page ("Oops! That page doesn't exist or is private")](https://meta.discourse.org/t/that-page-doesnt-exist-or-is-private-restyling-with-css/68017)

Is the information in this topic still relevant?

- that there’s no way to do log this in discourse
- that GA still makes it hard to track 404s out of the box

---

<div class="post-metadata">

### 作者： ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### 发布日期： [2019 年1 月 7 日 17:35 UTC](https://meta.discourse.org/t/can-i-keep-a-log-for-404-not-found-pages/69824/7 "2019-01-07T17:35:30Z")

</div>

I don’t believe this has changed.

One way that might make it easier to track in Google Analytics is if we update the page title to something like `404 not found - forum name` — In GA you can create a custom report that filters for page title without any custom JS or events.

---

<div class="post-metadata">

### 作者： ![leo.proctor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leo.proctor/32/216158_2.png) [@leo.proctor](https://meta.discourse.org/u/leo.proctor)
#### 发布日期： [2020 年1 月 9 日 11:33 UTC](https://meta.discourse.org/t/can-i-keep-a-log-for-404-not-found-pages/69824/8 "2020-01-09T11:33:25Z")

</div>

> [@awesomerobot](#):
>
> 一种可能让在 Google Analytics 中追踪变得更简单的方法是，将页面标题更新为类似“404 未找到 - 论坛名称”的格式。在 GA 中，你可以创建一个自定义报告，通过筛选页面标题来实现，无需任何自定义 JavaScript 或事件。

有没有办法更新 404 页面的标题？

---

<div class="post-metadata">

### 作者： ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### 发布日期： [2020 年1 月 9 日 12:01 UTC](https://meta.discourse.org/t/can-i-keep-a-log-for-404-not-found-pages/69824/9 "2020-01-09T12:01:39Z")

</div>

Discourse 中的任何文本都可以自定义。在您的情况下，您需要从 `/admin/customize/site_texts/page_not_found.title` 更改 `page_not_found.title`。

---

<div class="post-metadata">

### 作者： ![leo.proctor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leo.proctor/32/216158_2.png) [@leo.proctor](https://meta.discourse.org/u/leo.proctor)
#### 发布日期： [2020 年1 月 9 日 12:21 UTC](https://meta.discourse.org/t/can-i-keep-a-log-for-404-not-found-pages/69824/10 "2020-01-09T12:21:57Z")

</div>

抱歉，我指的是浏览器标签页上显示的部分中的页面标题。我找不到任何相关的文本自定义选项。

---

<div class="post-metadata">

### 作者： ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### 发布日期： [2023 年11 月 6 日 13:31 UTC](https://meta.discourse.org/t/can-i-keep-a-log-for-404-not-found-pages/69824/11 "2023-11-06T13:31:49Z")

</div>



---

<div class="post-metadata">

### 作者： ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### 发布日期： [2023 年11 月 6 日 19:58 UTC](https://meta.discourse.org/t/can-i-keep-a-log-for-404-not-found-pages/69824/12 "2023-11-06T19:58:03Z")

</div>


