How to add Custom Domain in the Google Tag Manager Server container [Step-by-step guide]

Custom domain for server GTM helps increase cookie lifetime by setting first-party cookies instead of third-party cookies. A same-origin approach offers increased security and simpler cookie management, ideal for singular, focused domains. A subdomain setup provides flexibility and performance optimization, suitable for complex or multiple domain structures. Each has its trade-offs in complexity, performance, and management.
=== CONTENT ===
00:00 - Intro
01:08 - Types of custom domain configuration
04:23 - About Same origin domain setup
04:52 - Custom subdomain configuration
09:30 - Additional configuration
11:54 - Checking the setup
12:40 - Adding custom domain to your GTM container
=== LINKS ===
◆ Detailed article on how to add a custom domain to the Google Tag Manager Server container: stape.io/blog/how-to-add-a-cu...
=== SERVER-SIDE with stape.io ===
GTM templates: stape.io/solutions/category/g...
What is server-side tracking?: stape.io/blog/what-is-server-...
How to set up Google Tag Manager Server Container?: stape.io/blog/how-to-set-up-g...
How to Set Up GA4 Tracking Using Google Tag Manager Server-Side Container: stape.io/blog/how-to-set-up-g...
Server-side conversion tracking in Google Ads (Adwords): stape.io/blog/server-side-con...
Facebook CAPI: stape.io/blog/how-to-set-up-f...
=== CONNECT with stape.io ===
✭ / stape.io
✭ / stape
✭ x.com/stape_io
✭ Community: community.stape.io/
#gtm #stape #googleanalytics #googletagmanager #tracking

Пікірлер: 14

  • @ivanfc
    @ivanfc29 күн бұрын

    At the end of the video, you changed the sGTM container settings but didn't add the Stape Container Config parameter. Is it no longer needed? Additionally, shouldn't the variable in the Web Container that contains the Server Container URL parameter be updated as well?

  • @Stape

    @Stape

    24 күн бұрын

    You are asking about this step, correct kzread.info/dash/bejne/mYt10s9midTQYbQ.html? If so, insert the server container URL into the server Google Tag Manager setting. In the web GTM, you need to create a variable with the tagging server URL or simply manually insert the URL every time it's needed.

  • @motioncomputingTV
    @motioncomputingTV18 күн бұрын

    Hi there, should I also use the domain origin as the Server GTM container URL in our wordpress plugin? As well as the GA4 server container URL we'll change it to that sane origin URL?

  • @Stape

    @Stape

    18 күн бұрын

    yes, correct. You should add the same origin domain to the WP plugin and GA4 server container URL

  • @sardegnaprofumi547
    @sardegnaprofumi547Ай бұрын

    Hi, Please note, this code has been copied to create the Cloudflare worker, but this is not the description, but can you find it?Please note, this code has been copied to create the Cloudflare worker, but this is not the description, but can you find it?

  • @Stape

    @Stape

    Ай бұрын

    Not sure if I understood your question correctly. If you are asking where to find JavaScript code, please check this link stape.io/blog/how-to-add-a-custom-domain-to-the-google-tag-manager-server-container#1-cloudflare

  • @sardegnaprofumi547

    @sardegnaprofumi547

    Ай бұрын

    @@Stape Yes, I was looking for this script, thanks

  • @MdAzmulHossain-fo1rr
    @MdAzmulHossain-fo1rr24 күн бұрын

    Hello Madam! In Browser container which ID will you give on google tag?

  • @Stape

    @Stape

    24 күн бұрын

    this guide explains how to find ga ID support.google.com/analytics/answer/9539598?hl=en

  • @LubiousCo
    @LubiousCo12 күн бұрын

    Hi, I linked my custom domain using Own CDN and didn't apply any extra configuration on Cloudflare like adding rules or caching... Is it possible to apply same origin configuration instead 09:35 ? Or is it something that can only be applied when choosing Stape Global CDN?

  • @Stape

    @Stape

    12 күн бұрын

    If you use Own CDN then there is no need to configure the same origin domain. Same origin domain should be used only with Stape Global CDN.

  • @LubiousCo

    @LubiousCo

    12 күн бұрын

    @@Stape Thanks for your prompt reply! So, when it comes to mapping a custom domain for the sGTM using Stape Global CDN I am able to implement two types of custom domain configurations, either with Same Origin or Subdomain. But when using Own CDN, there will be one and only type of custom domain configuration: Subdomain.

  • @Stape

    @Stape

    11 күн бұрын

    @@LubiousCo yes, correct