Tracking 404 Pages
<!-- After the tracker is included -->
<script>
UST.addTag('404-page-not-found');
UST.addEvent({
category: 'ERROR',
action: '404_NOT_FOUND',
});
</script>
Last updated
You can not tell if a page did load or showed 404 just by viewing the visited pages list.
You might want to know if users land on a page that renders your 404 content.
To get better insights, we can:
Create a 404 Tag, so we can easily filter those sessions.
Create a 404 Event, so we can see which page triggered the 404 error.
Include this JavaScript snippet in your 404 page template.
<!-- After the tracker is included -->
<script>
UST.addTag('404-page-not-found');
UST.addEvent({
category: 'ERROR',
action: '404_NOT_FOUND',
});
</script>The end result will be something like this:

Last updated