'Google Tag Manager setup a custom domain

I am trying to set up a custom domain for the google tag manager. I want to track users using a subdomain of my website (e.g. metrics.domain.com). I followed the steps listed here: https://developers.google.com/tag-platform/tag-manager/server-side/custom-domain.

When I checked to see if the new subdomain is working I get the following message:

Error: Page not found The requested URL was not found on this server.

I tried pinging my subdomain and it appears to be correct:

ping ***.***.***

Pinging ghs.googlehosted.com [142.251.36.51] with 32 bytes of data:
Reply from 142.251.36.51: bytes=32 time=3ms TTL=119
Reply from 142.251.36.51: bytes=32 time=3ms TTL=119
Reply from 142.251.36.51: bytes=32 time=3ms TTL=119
Reply from 142.251.36.51: bytes=32 time=3ms TTL=119

Browsing to https://****/g/collect?v=2&tid=***** returns a 404

What step(s) could I have missed?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source