Stape subdomains β DNS configuration
The agency hosts the GTM Server container on Stape. To send events first-party (instead of through googletagmanager.com), point 2 subdomains to Stape.
Subdomains to createβ
| Subdomain | DNS Type | Value (provided by agency) | TTL |
|---|---|---|---|
analytics.biosphereskincare.com | CNAME | <container-id>.stape.io | 3600 |
load.analytics.biosphereskincare.com | CNAME | <container-id>.stape.io | 3600 |
Why 2 subdomains?β
analytics.biosphereskincare.comβ the server endpoint where GTM Web POSTs events.load.analytics.biosphereskincare.comβ servesgtm.js(andns.html) first-party. Without it, the browser callswww.googletagmanager.comβ blocked by ad blockers (uBlock, AdGuard, Brave shieldsβ¦).
Procedureβ
Step 1 β Agency sends you the CNAME valuesβ
After creating the Stape container, the agency hands over values like:
load.analytics.biosphereskincare.com β abc123xyz.stape.io
analytics.biosphereskincare.com β abc123xyz.stape.io
Step 2 β Create the CNAMEsβ
In your DNS registrar (Cloudflare, OVH, Gandi, IONOSβ¦):
Cloudflareβ
- Dashboard β biosphereskincare.com β DNS β Records
- Add record:
- Type:
CNAME - Name:
load.analytics - Target:
abc123xyz.stape.io - Proxy status: DNS only (grey, not orange) β οΈ important
- Type:
- Repeat for
analytics.
β οΈ Cloudflare proxy must be OFF (grey). Orange proxy breaks Stape's SSL validation.
OVHβ
- Customer space β Domains β
biosphereskincare.comβ DNS Zone - Add record:
- Subdomain:
load.analytics - Type:
CNAME - Target:
abc123xyz.stape.io.(trailing dot required)
- Subdomain:
- Repeat for
analytics.
Other registrarsβ
Same principle: create 2 CNAME records.
Step 3 β Notify the agencyβ
Once the CNAMEs are live, ping the agency so Stape SSL validation kicks in.
Propagation delay: 5 min to 24h depending on the registrar. Quick check:
dig load.analytics.biosphereskincare.com CNAME +short
# Expected: abc123xyz.stape.io.
dig analytics.biosphereskincare.com CNAME +short
# Expected: abc123xyz.stape.io.
Step 4 β Stape validates SSL automaticallyβ
Stape automatically requests a Let's Encrypt cert for each subdomain. Once issued, the agency activates the mapping in the container.
Final checkβ
Once active, in a browser:
https://load.analytics.biosphereskincare.com/gtm.js?id=GTM-XXXXXX
Should return the gtm.js content (JavaScript). SSL error or 404 β one subdomain is misconfigured.
CSP (Content-Security-Policy)β
If your site has a strict CSP, add these directives:
script-src 'self' https://load.analytics.biosphereskincare.com
connect-src 'self' https://analytics.biosphereskincare.com
img-src 'self' https://analytics.biosphereskincare.com data:
Pitfallsβ
- β Cloudflare proxy in orange mode β Stape SSL fails to validate.
- β Using an
A recordinstead ofCNAME. - β Missing trailing dot on OVH (
abc123xyz.stape.io.vsabc123xyz.stape.io). - β Creating only
analyticswithoutload.analyticsβ server hits work, butgtm.jsstays blocked.