How to Add a Subdomain on Shopify

Adding a subdomain on Shopify is one of those deceptively simple tasks that touches branding, SEO, analytics, and technical infrastructure all at once. Whether you want shop.example.com while your main site lives on WordPress, or market-specific subdomains like fr.example.com for your French store, setting it up correctly ensures secure HTTPS, fast performance, accurate tracking, and clean search visibility. This step-by-step guide from the Watsspace Digital Marketing Blog walks you through exactly how to add a subdomain on Shopify—plus the why, the when, and the gotchas to avoid.

What “adding a subdomain on Shopify” really means

At a technical level, adding a subdomain on Shopify is about two things:

  • Creating a DNS record for your subdomain (for example, blog.example.com or shop.example.com) that points to Shopify.
  • Connecting and verifying that subdomain in your Shopify admin so Shopify can provision HTTPS and serve your storefront.

In most cases, that DNS record is a CNAME pointing your subdomain to Shopify’s canonical host. You then tell Shopify which domain should be your primary domain, and Shopify will handle redirects for the rest.

Common reasons to add a subdomain on Shopify include:

  • Keep your main site elsewhere (e.g., WordPress on example.com), but run commerce on shop.example.com.
  • Launch market- or language-specific sites, such as fr.example.com or de.example.com.
  • Create campaign or wholesale portals (e.g., wholesale.example.com or vip.example.com).

Subdomain vs subfolder for SEO on Shopify

Should you put your store on a subdomain (shop.example.com) or in a subfolder (example.com/shop)? The answer depends on control, platform constraints, and your roadmap. On Shopify, you typically use subdomains when your primary site is on a different CMS or when you deliberately want separate experiences per market. Subfolders are often preferred by SEOs when all content lives on one platform.

Key considerations:

  • Google treats subdomains and subfolders similarly, but you must verify and monitor them separately in Search Console.
  • Internal linking and canonicalization matter more than the URL structure alone. Keep a cohesive architecture and avoid duplicate content.
  • Analytics: configure cross-subdomain measurement so sessions don’t split when users move between your main site and your Shopify subdomain.

Google has stated that subdomains and subdirectories are treated similarly for crawling and ranking, but each subdomain may need separate configuration and verification.

Google Search Central

Prerequisites and key terms

Before you start, make sure you have:

  • Access to your domain’s DNS at your registrar or DNS provider (e.g., Cloudflare, GoDaddy, Namecheap, Squarespace Domains).
  • Shopify admin access with permission to manage domains.
  • A clear subdomain naming plan (shop, store, fr, de, wholesale, etc.).

Quick glossary:

  • DNS: The system that turns human-friendly names into IP addresses and service targets.
  • Record types:
    • CNAME: Alias record used for subdomains. This is the record you typically create for a Shopify subdomain.
    • A record: Maps a hostname to an IP address. Typically used for your root/apex domain, not subdomains.
    • TXT: Used for verification and email authentication (SPF, DKIM, DMARC).
  • Propagation: The time it takes for DNS changes to update globally.
  • SSL/TLS: Enables HTTPS. Shopify provisions certificates automatically once your domain is connected.

Quick start: The shortest path to add a subdomain on Shopify

If you just want the fastest route, follow this condensed version and then come back for best practices:

  1. In your Shopify admin, go to Settings > Domains and click Connect existing domain. Enter your subdomain (e.g., shop.example.com) and follow the prompts.
  2. At your DNS provider, create a CNAME record:
    • Name/Host: the subdomain label (e.g., shop)
    • Type: CNAME
    • Value/Target: Shopify’s canonical host (as shown in your Shopify admin)
    • TTL: 300–3600 seconds (5–60 minutes)
  3. Return to Shopify and click Verify connection. Provisioning HTTPS can take up to 48 hours.
  4. Set your Primary domain (the one visitors should see in the address bar). Shopify will auto-redirect other connected domains to it.

SSL certificate provisioning for connected domains can take up to 48 hours.

Shopify Help Center

Step-by-step: Add a Shopify‑managed subdomain (you bought your domain in Shopify)

If you purchased your domain through Shopify, you can add subdomains directly from the Shopify admin without visiting an external registrar dashboard.

  1. Open Shopify admin > Settings > Domains.
  2. Find your Shopify-managed domain and click it.
  3. Under DNS or Subdomains, choose Add subdomain.
  4. Enter your desired subdomain label, such as shop, fr, or wholesale.
  5. Confirm to create the CNAME record automatically to Shopify.
  6. Return to the main Domains page and click Verify if needed. Shopify will start provisioning SSL for the new subdomain.

Because Shopify manages DNS, you avoid copy-pasting DNS targets and reduce the chance of typos. You still need to designate your Primary domain so customers consistently see the domain you prefer.

Step-by-step: Add a third‑party subdomain to Shopify (GoDaddy, Cloudflare, Namecheap, Squarespace)

If your domain is hosted at a registrar or DNS provider outside Shopify, you’ll create the CNAME record there and then connect the subdomain inside Shopify.

1) Create the CNAME record at your DNS provider

Use this template as your reference. Replace placeholders with your values.

; Example DNS zone snippet for a Shopify subdomain
; Subdomain: shop.example.com
shop    3600    IN    CNAME    [Shopify target from your admin]
; e.g., shops.myshopify.com. (Shopify will show the exact value)
  • Name/Host: the subdomain label only (e.g., shop)
  • Type: CNAME
  • Value/Target: the Shopify canonical host shown in your Shopify admin when you choose Connect domain
  • TTL: 300–3600 seconds

Provider-specific notes:

  • GoDaddy: DNS is under My Products > Domains > DNS. Select Add, choose CNAME, host = shop, points to the Shopify target.
  • Cloudflare: In DNS, add a CNAME. Set Proxy status to DNS only while verifying and provisioning SSL to avoid misconfiguration. You can evaluate enabling proxy later.
  • Namecheap: Go to Domain List > Manage > Advanced DNS. Add a CNAME for host = shop, value = Shopify target.
  • Squarespace Domains: Go to the domain’s DNS Settings, add a CNAME for host = shop, target = Shopify’s host.

2) Connect and verify in Shopify

  1. In Shopify admin, open Settings > Domains.
  2. Click Connect existing domain, enter the full subdomain (e.g., shop.example.com), and follow the steps.
  3. Click Verify connection. Shopify will test your DNS and start SSL provisioning on success.
  4. Set your Primary domain and confirm redirect preferences.

DNS propagation can be rapid (minutes) or sluggish (hours). If verification fails immediately after you create records, wait and try again.

Verify and set your primary domain in Shopify

After your subdomain is connected, choose your canonical customer-facing domain. This impacts branding, link equity consolidation, and how URLs appear in search results.

  1. Go to Settings > Domains.
  2. Under Connected domains, click Change primary domain.
  3. Select the domain you want (e.g., shop.example.com or www.example.com).
  4. Save. Shopify will redirect other domains to the primary one using HTTPS.

Best practice for consistency is to pick one primary and stick to it. If you’re consolidating from multiple domains, plan 301 redirects and update internal links.

Configure SSL, HTTPS, and HSTS

Shopify automatically provisions SSL certificates for connected domains and subdomains. You don’t need to purchase separate certificates. Still, a few settings matter:

  • Force HTTPS: Shopify enforces HTTPS by default. Avoid mixed content by using protocol-relative or HTTPS URLs for images, scripts, and embeds.
  • SSL provisioning window: It can take up to 48 hours. During this time, you might see security warnings if you try to load the subdomain prematurely.
  • HSTS (HTTP Strict Transport Security): If you previously enabled HSTS at another provider or via a proxy, ensure it won’t conflict with Shopify’s SSL rollout timeline.
  • Third-party proxies: If using Cloudflare proxy, confirm SSL mode compatibility (e.g., Full). When in doubt, keep DNS-only until everything is verified and secure.

SSL and DNS changes often stabilize within hours, but global propagation can take up to 48 hours depending on caching policies.

Cloudflare Learning Center

Keep your root site on WordPress or Webflow and send only a subdomain to Shopify

One of the most common patterns is content on your root domain and commerce on a Shopify subdomain. For example, your marketing site remains at example.com (WordPress), and your store lives at shop.example.com (Shopify).

How to do it cleanly:

  • Leave apex and www records as-is at your current host.
  • Add a CNAME for the shop subdomain pointing to Shopify.
  • Connect and verify the subdomain in Shopify, then set your Primary domain to the subdomain if you want it to be canonical for the store.
  • Link between sites thoughtfully: clear navigation paths, consistent branding, and strong internal linking.

This configuration keeps your marketing stack intact while giving you all the benefits of Shopify’s checkout and backend. It’s also the least disruptive migration path if you are moving from another ecommerce platform in phases.

International markets: language and country subdomains

Shopify Markets lets you tailor buyer experience by country or language. Subdomains are a flexible way to implement market variations without changing your root domain setup.

  • Language subdomains: e.g., fr.example.com, de.example.com, es.example.com.
  • Country subdomains: e.g., uk.example.com, ca.example.com, au.example.com.

Implementation notes:

  • Create a CNAME for each market subdomain to Shopify.
  • In Shopify Markets, configure domains and languages. Ensure translations, price lists, and shipping rules are in place.
  • Use hreflang annotations so search engines understand the relationship between language/country versions.
  • Keep a consistent information architecture to avoid duplication and improve crawl efficiency.

Providing fast, localized experiences improves user satisfaction and engagement; mobile users are especially sensitive to latency and relevance.

Google Search Central

Analytics and SEO tracking across subdomains

Subdomains require special attention so you don’t fragment data or inflate referrals.

  • GA4 cross-subdomain measurement:
    • In GA4, include all your domains and subdomains in the List of domains for cross-domain measurement.
    • Ensure the same Measurement ID is used across your main site and Shopify theme.
    • Exclude self-referrals: in GA4, mark your own domains as Unwanted referrals.
  • Google Search Console:
    • Add a Domain property to see all subdomains together.
    • Also add specific URL prefix properties for key subdomains (e.g., shop.example.com) to access subdomain-level reports.
  • UTM governance:
    • Use UTMs for offsite campaigns, but avoid UTMs on internal links between your subdomain and main site to prevent session resets.

Over half of global web traffic is mobile; measuring behavior consistently across domains is critical for accurate ROI reporting.

StatCounter GlobalStats

Email deliverability when you add a subdomain

Adding a Shopify subdomain doesn’t automatically change email, but DNS changes are a good time to audit your sender authentication:

  • SPF (TXT): Ensure your SPF includes the services that send mail on your behalf (ESP, transactional, helpdesk).
  • DKIM (CNAME/TXT): Add records provided by your ESP to sign mail cryptographically.
  • DMARC (TXT): Publish a policy to monitor and enforce alignment.

If you’re sending order notifications or marketing from addresses on your domain, configure SPF/DKIM/DMARC on the root domain. You can also dedicate an email subdomain (e.g., mail.example.com) for sending. Keep these records separate from your Shopify subdomain.

Performance, CDN, and propagation times

Shopify serves your storefront via a global CDN for speed and availability. DNS choices still matter:

  • TTL: Lower TTL (e.g., 300 seconds) speeds up future DNS changes. Once everything is stable, you can raise TTL (e.g., 3600–14400 seconds).
  • Propagation: Many updates appear in minutes, but global resolvers may cache for hours.
  • Third-party proxies: If you add Cloudflare or similar, consider the tradeoffs: extra layer of caching/security vs. added complexity with SSL and redirects.

DNS changes often propagate within a few hours but can take up to 24–48 hours worldwide depending on TTL and caching.

Cloudflare Learning Center

As page load time goes from 1s to 3s, the probability of bounce increases significantly on mobile.

Think with Google

Troubleshooting and common errors

Most subdomain issues boil down to a small set of misconfigurations. Here’s how to fix them fast.

1) Verification failed in Shopify

  • Check the record type: Subdomains must be CNAMEs, not A records.
  • Check the host/label: Use only the subdomain label (e.g., shop), not the full domain, in the Name field at many DNS providers.
  • Target value: Copy exactly as shown in Shopify. Some providers auto-append the domain; if so, ensure you do not duplicate it.
  • Wait for propagation: Give it 15–60 minutes and try again; full propagation can take longer.

2) SSL pending or browser security warnings

  • Do not proxy through third-party CDN during initial verification, or ensure SSL mode is compatible.
  • No mixed content: Update hardcoded HTTP resources to HTTPS in your theme and apps.
  • Time window: Allow up to 48 hours for certificate issuance.

3) Redirect loops

  • Primary domain mismatch: If you set the primary domain to www.example.com but you’re accessing shop.example.com, ensure the redirect behavior matches your intent.
  • External redirects: Check if your DNS provider or proxy is enforcing HTTPS or redirects that conflict with Shopify’s redirects.

4) Wrong site loads on subdomain

  • Record shadowing: Ensure there is no leftover A record or conflicting CNAME for the same host.
  • Multiple CNAMEs: You can only have one CNAME per host. Remove extras.
  • Cache: Test via another network or use a DNS lookup tool to verify the live record.

5) Email breaks after DNS changes

  • Preserve MX records: Don’t alter MX if you’re not changing email providers.
  • SPF alignment: If you added or changed SPF, verify all mail senders are included and that the record doesn’t exceed 10 DNS lookups.

Security and governance best practices

Domains are brand assets. Treat DNS changes with the same rigor you apply to code deploys.

  • Role-based access: Use separate user accounts and least privilege at the registrar and Shopify.
  • Change control: Stage changes in off-peak hours; document who changed what and when.
  • 2FA everywhere: Enable two-factor authentication for your registrar, DNS provider, and Shopify.
  • No wildcard CNAMEs to Shopify: Explicitly create only the subdomains you plan to serve. Avoid typosquatting vectors.
  • Monitor certificates: Periodically validate that certificates are current across all connected subdomains.
  • Backups: Export DNS zone files before major changes.

Implementation scenarios and DNS actions (table)

Use this table to match your scenario with the DNS and Shopify actions required.

Scenario DNS record to create Where to create Shopify steps Notes
Shopify-managed domain, add shop.example.com CNAME for host “shop” Shopify admin (DNS managed by Shopify) Add subdomain in Settings > Domains; Verify Fastest path; SSL auto-provisions
Third-party domain, keep root on WordPress, store on shop.example.com CNAME for host “shop” to Shopify target Registrar/DNS provider (e.g., GoDaddy) Connect existing domain; Verify; Set Primary Do not touch MX or apex A record
International subdomains (fr.example.com, de.example.com) CNAME per subdomain Registrar/DNS provider Connect each; Configure Markets and hreflang Translate content and currency rules
Wholesale portal on wholesale.example.com CNAME for host “wholesale” Registrar/DNS provider Connect; Restrict access via Shopify settings/apps Consider password protection or apps
Cloudflare in front of Shopify subdomain CNAME with proxy off during verify Cloudflare DNS Connect; Enable proxy later if desired Ensure compatible SSL mode

GoDaddy

  • Find your domain under My Products, then click DNS.
  • Under Records, click Add, choose CNAME.
  • Host = your subdomain label (e.g., shop). Points to = Shopify target.
  • Save. Return to Shopify and verify.

Cloudflare

  • Add a CNAME for your subdomain label in the DNS tab.
  • Set Proxy status to DNS only during verification to avoid SSL conflicts.
  • After verification and SSL provisioning, you may enable proxy and test. Keep an eye on redirect rules and SSL mode.

Namecheap

  • Open Domain List > Manage > Advanced DNS.
  • Create a CNAME record: Host = shop, Value = Shopify target.
  • Save and verify in Shopify.

Squarespace Domains

  • Open the domain’s DNS Settings.
  • Add a CNAME for host = shop, pointing to the Shopify target.
  • Save and verify in Shopify.

Tip: Some providers auto-append your domain. If you paste a fully qualified name into the host field, you may end up with a duplicate suffix. Use only the subdomain label (e.g., “shop”) in the host field unless the interface explicitly asks for the full domain.

Redirects, canonicals, and duplicate content

Subdomains introduce new URL surfaces. To keep SEO signals consolidated:

  • Pick one primary domain in Shopify so other connected domains 301-redirect to it.
  • Canonical tags: Shopify themes output canonicals by default. Confirm they reference the primary domain version.
  • Consistent internal links: Link to the canonical domain in navigation, sitemaps, and structured data.
  • Robots and sitemaps: Verify sitemaps resolve on your selected primary domain and include the correct URLs.

Realistic timeline for adding a Shopify subdomain

The process is quick, but align expectations with your team:

  • Preparation (15–45 minutes): Confirm access, choose the subdomain, plan redirects.
  • DNS change (5–15 minutes): Create CNAME at your provider.
  • Verification (5–30 minutes): Connect in Shopify; first checks often pass quickly.
  • SSL provisioning (minutes to 48 hours): Certificates issue and propagate.
  • QA and analytics (30–90 minutes): Test redirects, tracking, and checkout flows.

Command-line style examples for power users

If your DNS provider supports zone file editing, here are illustrative snippets. Replace the placeholder target with the exact value shown in Shopify.

; Subdomain: shop.example.com - CNAME to Shopify
shop   300   IN   CNAME   [shopify-target.example]  ; from Shopify admin

; Language subdomain: fr.example.com
fr     600   IN   CNAME   [shopify-target.example]

; Avoid multiple CNAMEs for the same host. One host = one CNAME.

To test via command line:

# Resolve the CNAME chain
dig +short shop.example.com CNAME
dig +short shop.example.com

# Check HTTP response and redirects
curl -I https://shop.example.com

Checklist: How to add a subdomain on Shopify without surprises

  • Decide the canonical: Will customers see shop.example.com or www.example.com?
  • Confirm access: Shopify admin and DNS provider credentials with 2FA.
  • Create CNAME: Host = subdomain label; Target = Shopify value; TTL = 300–3600.
  • Connect and verify in Shopify.
  • Set Primary domain and confirm redirects.
  • Wait for SSL: Expect up to 48 hours.
  • QA: Test navigation, checkout, sitemaps, canonical tags, and mixed content.
  • Analytics: GA4 cross-domain, Search Console properties, referral exclusions.
  • Email: Re-check SPF/DKIM/DMARC if you changed DNS zones.
  • Document: Record what changed, when, and by whom.

FAQs about Shopify subdomains

Do I need an A record for my Shopify subdomain?

No. For subdomains, use a CNAME record. A records are for apex/root domains.

How long until my subdomain works?

Often within minutes, but allow up to 48 hours for full DNS and SSL propagation.

Will this break my email?

It shouldn’t. You are creating a CNAME for a new host. Leave your MX and existing email-related TXT records untouched unless you intend to change email services.

Can I use Cloudflare with Shopify?

Yes, but start with DNS only for the subdomain while verifying and provisioning SSL. If you later enable proxying, validate SSL mode and page rules to avoid conflicts.

Is a subdomain worse for SEO than a subfolder?

Google can handle both. What matters more are internal linking, canonical tags, content quality, and technical hygiene. You must verify and monitor subdomains in Search Console.

Can I run my blog on blog.example.com and the store on shop.example.com?

Yes. Create two CNAMEs pointing to the appropriate platforms. Keep brand cohesion and link between them.

What if my main site is on Squarespace or Webflow?

No problem. Leave your apex and www records pointing to that platform. Create a CNAME for your Shopify subdomain. Connect and verify in Shopify.

Do I need to add every subdomain to Shopify?

Only subdomains you want Shopify to serve need to be added and verified. Avoid wildcard CNAMEs.

Benchmarks, facts, and why the details matter

  • SSL provisioning window: Up to 48 hours for new or changed domains.
  • Propagation variability: Many DNS resolvers cache records for hours; some regions update faster than others.
  • Mobile sensitivity to speed: Mobile visitors are quick to bounce with slow load times, so using Shopify’s CDN via a correctly configured domain matters.

SSL certificates for connected domains are automatically issued by Shopify and may take up to 48 hours to provision.

Shopify Help Center

DNS changes can propagate within hours, with global completion taking up to 24–48 hours depending on caching and TTL.

Cloudflare Learning Center

Google treats subdomains similar to subdirectories for search, but site owners should ensure proper verification and configuration for each subdomain.

Google Search Central

As mobile load times increase from one to three seconds, the likelihood of a bounce rises substantially.

Think with Google

Sample project plan: from request to launch

Use this simple plan if you’re coordinating across teams.

  1. Day 0: Kickoff
    • Decide subdomain naming and primary domain.
    • Assign DNS owner and Shopify admin.
  2. Day 1: DNS + Shopify connection
    • Create the CNAME.
    • Connect in Shopify and verify.
  3. Day 1–2: SSL window
    • QA over HTTPS; check for mixed content.
    • Keep stakeholders posted on propagation status.
  4. Day 2: Analytics + SEO
    • GA4 cross-domain configuration complete.
    • Search Console properties added and sitemaps submitted.
  5. Day 3: Go-live comms
    • Announce the new domain paths internally.
    • Update navigation and marketing materials.

Pro tips to future-proof your Shopify subdomains

  • Standardize naming: Use predictable labels (shop, store, fr, de). Avoid hyphen chaos.
  • Document DNS: Keep a living doc with current records, TTLs, and ownership.
  • Automate checks: Use monitoring to alert if DNS or certificates change unexpectedly.
  • Minimize redirects: Keep the shortest possible canonical chain; don’t bounce from apex to www to subdomain and back.
  • Review annually: Markets change. Revisit whether your domain strategy still fits your SEO and CX goals.

Putting it all together: examples you can copy

Here are three common patterns with the exact steps you can repeat.

A) Main site on WordPress, Shopify on shop.example.com

  1. Create CNAME: host = shop, value = Shopify target.
  2. Connect in Shopify and verify.
  3. Set Primary domain to shop.example.com for the store.
  4. Update WordPress menu links to point to the shop subdomain.
  5. Configure GA4 cross-domain and Search Console properties.

B) Multi-language rollout with fr.example.com and de.example.com

  1. Create CNAMEs for fr and de.
  2. Connect both in Shopify; configure Markets and translations.
  3. Add hreflang annotations and localized metadata.
  4. Set region-specific shipping, payments, and taxes.
  5. Monitor each subdomain in Search Console.

C) Wholesale portal on wholesale.example.com with restricted access

  1. Create CNAME for wholesale.
  2. Connect in Shopify; enable password protection or use a B2B/wholesale app.
  3. Hide portal from public navigation; share direct access with your wholesale buyers.
  4. Track via a separate GA4 data stream if needed.

Common pitfalls to avoid

  • Using an A record for a subdomain: Always a CNAME for Shopify subdomains.
  • Proxying too soon: Verify and provision SSL with DNS-only first, especially with Cloudflare, then evaluate proxying.
  • Ignoring analytics: Without cross-domain configuration, sessions split and attribution suffers.
  • Multiple CNAMEs per host: DNS won’t allow it; remove duplicates.
  • Unplanned redirects: Map out redirect behavior before flipping the Primary domain.

Executive summary: How to add a subdomain on Shopify

  • Create a CNAME for your subdomain (host = label, value = Shopify target).
  • Connect and verify the subdomain in Shopify > Settings > Domains.
  • Set your Primary domain and ensure 301 redirects work as intended.
  • Wait for SSL to provision (up to 48 hours) and test for mixed content.
  • Configure GA4 and Search Console for cross-subdomain tracking and monitoring.
  • Maintain DNS hygiene: least privilege, documentation, and periodic reviews.

Conclusion: Your Shopify subdomain, done right

Adding a subdomain on Shopify is straightforward when you pair the right DNS record (a CNAME) with Shopify’s built-in domain tools. The magic is in the details: choosing a clear primary domain, letting SSL provision fully, avoiding conflicting proxies or redirects, and ensuring analytics and SEO are configured for cross-subdomain scenarios. With a solid plan, you can launch shop.example.com in under a day while preserving email, protecting security, and giving customers a fast, reliable storefront.

Use the checklists and examples above as your blueprint. If you’re coordinating multiple markets or platforms, invest the extra hour in documentation and QA—your brand, search equity, and reporting accuracy will benefit for years to come.