Domain Setup
SweetCode Cloud uses a CNAME record to route traffic through Cloudflare’s edge network via a first-party subdomain on your domain. This guide covers setup for common DNS providers.
How It Works
Section titled “How It Works”When you add a domain in the dashboard, SweetCode Cloud assigns a proxy subdomain (default: ssp). You create a CNAME record pointing that subdomain to ssp.sweetcode.cloud. All requests to ssp.yourshop.com are then processed by the edge proxy and forwarded to your configured ad-platform destinations.
Browser → ssp.yourshop.com → CNAME → ssp.sweetcode.cloud → Cloudflare Edge → Meta, TikTok, etc.Domain Limits
Section titled “Domain Limits”The number of domains you can add depends on your plan:
| Plan | Max Domains |
|---|---|
| Free | 5 |
| Pro | 25 |
| Business | 50 |
| Scale | 100 |
If you need more domains, upgrade your plan from the Billing page in the dashboard.
DNS Configuration
Section titled “DNS Configuration”Cloudflare
Section titled “Cloudflare”- Go to DNS → Records in your Cloudflare dashboard
- Click Add Record
- Set Type to CNAME, Name to
ssp, and Target tossp.sweetcode.cloud - Click Save
Namecheap
Section titled “Namecheap”- Go to Domain List → Manage → Advanced DNS
- Click Add New Record
- Type: CNAME, Host:
ssp, Value:ssp.sweetcode.cloud, TTL: Automatic - Click the checkmark to save
GoDaddy
Section titled “GoDaddy”- Go to My Products → DNS → DNS Records
- Click Add
- Type: CNAME, Name:
ssp, Value:ssp.sweetcode.cloud, TTL: 1 Hour - Click Save
Vercel (if using Vercel DNS)
Section titled “Vercel (if using Vercel DNS)”- Go to Domains → [your domain] → DNS Records
- Add a CNAME record: Name
ssp, Valuessp.sweetcode.cloud
Other Providers
Section titled “Other Providers”For any other DNS provider, the process is the same — create a CNAME record with:
| Field | Value |
|---|---|
| Type | CNAME |
| Name | ssp (or your chosen subdomain) |
| Target | ssp.sweetcode.cloud |
| TTL | Auto / Default |
Verification
Section titled “Verification”After creating the DNS record, verify it in two ways:
Dashboard Verification
Section titled “Dashboard Verification”Return to Domains → [your domain] in the SweetCode Cloud dashboard and click the Verify DNS button. If DNS has propagated, the routing status changes from Pending DNS to Active.
Command Line
Section titled “Command Line”dig ssp.yourshop.com CNAME +short# Expected: ssp.sweetcode.cloud.DNS propagation typically takes 1–5 minutes but can take up to 48 hours in rare cases.
Custom Subdomains
Section titled “Custom Subdomains”By default, the proxy uses the ssp subdomain. You can customize this when adding the domain in the dashboard. Common alternatives:
track.yourshop.comdata.yourshop.comevents.yourshop.com
The subdomain must be a valid DNS label (lowercase letters, numbers, and hyphens).
Troubleshooting
Section titled “Troubleshooting”CNAME not resolving
Section titled “CNAME not resolving”- Ensure the record was saved (check for typos in the target — it must be exactly
ssp.sweetcode.cloud) - Wait at least 5 minutes for propagation
- Use
digor dnschecker.org to verify from multiple locations
SSL certificate errors
Section titled “SSL certificate errors”SweetCode Cloud automatically provisions TLS certificates for your domain. This usually completes within minutes of DNS validation. If you see certificate errors, wait 15 minutes and try again.
Domain stuck in “Pending DNS”
Section titled “Domain stuck in “Pending DNS””If the dashboard shows “Pending DNS” for more than 30 minutes:
- Double-check the CNAME record target is exactly
ssp.sweetcode.cloud - Try clicking Verify DNS again in the dashboard
- Check for conflicting records — if an A record exists for the same subdomain, delete it before adding the CNAME
Domain limit reached
Section titled “Domain limit reached”If you see a “domain limit exceeded” error when adding a domain, you’ve reached your plan’s limit. See the Billing & Plans guide to upgrade.
For more issues, see the full Troubleshooting guide.