Contact salesTry for free

How to add a custom domain to the Google Tag Manager Server container

Ivanna Holubovska

Ivanna Holubovska

Author
Updated
Oct 24, 2022
Also available in

In this article, I will describe how to set up a custom subdomain within your Google Tag Manager server container. The main advantage of a custom subdomain inside the Google Tag Manager Server container is that it helps to bypass Intelligent Tracking Preventions, AdBlockers and increases cookie lifetime for users browsing in Safari. Pixels will be loaded from your subdomain and run as the first-party. 

Why Should You Use Custom Subdomain Inside Google Tag Manager Server Container?

Google Tag Manager Server-side tagging allows moving out third-party tracking pixels off the website or app to the server-side environment.

Server-side tagging offers a few advantages over client-side tags:

  1. Faster performance: Fewer tags are running on your website or app. It means less code runs inside the browser, improving your website speed.
  2. More security: Data is better protected as it will be managed inside the server-side environment.

You have two option for tagging server URL:

  • use tagging URL that was created for you and is hosted on our domain (stape.io)
  • create a custom subdomain.

We recommend setting up a custom subdomain since with the custom subdomain you’ll enjoy the following benefits:

  • Bypassing ITPs and AdBlockers;
  • Extended cookie lifetime.

Tracking prevention doesn’t affect requests from your own domain. Your website will bypass AdBlockers and ITPs, giving the full data about your website visitors and conversions.

How to add Custom Subdomain Inside Google Tag Manager Server Container?

First of all, you need to create and set up the Google Tag Manager server container. If you don’t have a server container follow this instruction.

author

Ivanna Holubovska

Author

Content contributor at Stape.io, focusing on server-side tracking, digital marketing, and innovative solutions to optimize online business performance. optimize online business performance.

Comments

Try Stape for all things server-side

What’s going on?

Where are we going?

Attention!
This is a stand-up dog zone.