# Google Tag Manager doesn't fire on 404 pages

**URL:** https://meta.discourse.org/t/google-tag-manager-doesnt-fire-on-404-pages/131254
**Category:** Support
**Created:** [October 17, 2019, 1:29pm UTC](https://meta.discourse.org/t/google-tag-manager-doesnt-fire-on-404-pages/131254 "2019-10-17T13:29:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bvdrie72](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bvdrie72/32/158775_2.png) [@bvdrie72](https://meta.discourse.org/u/bvdrie72)
#### Post date: [October 17, 2019, 1:29pm UTC](https://meta.discourse.org/t/google-tag-manager-doesnt-fire-on-404-pages/131254/1 "2019-10-17T13:29:06Z")

</div>

We just moved from vanilla forums to Discourse and it is great - not sure why we didn’t move a long time ago.  
We are using google tag manager for a variety of functions but it appears that google tag manager doesn’t get initiated on a 404 page.

Here is the live site: [https://forums.paddling.com](https://forums.paddling.com/)  
If you view the source or inspect, you can see that the GTM container is called.

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/c/fc2412086a41f76eec7bd1673fd0a847e7595547.png)

However, if you load a page that creates a 404, the GTM container is never loaded.  
[https://forums.paddling.com/foo\_bar/](https://forums.paddling.com/foo_bar/)

---

<div class="post-metadata">

### Author: ![Jon\_Shubeli](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jon_shubeli/32/252786_2.png) [@Jon\_Shubeli](https://meta.discourse.org/u/Jon_Shubeli)
#### Post date: [March 11, 2022, 8:35am UTC](https://meta.discourse.org/t/google-tag-manager-doesnt-fire-on-404-pages/131254/2 "2022-03-11T08:35:02Z")

</div>

Hey @bvdrie72!

Did you manage to figure this out? How to GA track 404 pages?
