Skip to content
ADVANCED SETUP

DNS and CNAME setup

How to correctly set up the DNS records for your own sGTM container subdomain.

10 min Read Začátečník Updated 5.6.2026

⏱️ Setup time: about 5-10 minutes + DNS propagation time | Level: Beginner

Why your own subdomain?

Server-side GTM works best on your own subdomain (e.g. sgtm.yourdomain.cz). This way:

  • Cookies are first-party (valid for 2 years, not 7 days)
  • Ad-blockers don't block requests to your domain
  • Data stays under your control

Step 1: Add the domain in the dashboard

  1. Sign in to the admin
  2. Go to the Domains section
  3. Enter the subdomain (e.g. sgtm.yourdomain.cz)
  4. The system shows you the CNAME target

Step 2: Set up DNS at your registrar

Add a CNAME record:

Type:CNAME
Name:sgtm
Value:your-id.sgtm.datanostro.com
TTL:3600 (or auto)

Step 3: Verification

After setting up DNS (propagation can take 5 min to 48 hours):

  1. In the dashboard click Verify DNS
  2. The system automatically checks the CNAME record
  3. After successful verification an SSL certificate is generated automatically

💡 Tip: If you use Cloudflare, turn off the proxy (orange cloud) for the CNAME record — set it to DNS only (gray cloud).

Did this article help you?
✓ Thank you for the feedback