How to Add a Custom Domain to Shopify (2024 Guide)

How to Add a Custom Domain to Shopify (2024 Guide)
Photo by Shoper on Unsplash

Why Your Domain Name Matters for Your Shopify Store

When you first create a Shopify store, you get a default URL that looks something like yourstore.myshopify.com. While this works fine to get started, it doesn't exactly scream professionalism. A custom domain name — like yourstore.com — makes your business look more trustworthy, helps customers remember your brand, and can even improve your search engine rankings over time.

The good news? Adding a custom domain to Shopify is much easier than most beginners expect. Whether you want to buy a brand-new domain through Shopify or connect one you already own from a third-party registrar, this guide walks you through every step.

Option 1: Buy a Domain Directly Through Shopify

If you don't already have a domain name, buying one directly through Shopify is the simplest route. Shopify handles all the technical setup automatically, so you don't need to touch any DNS settings.

Steps to Purchase a Domain on Shopify

  • Log in to your Shopify admin dashboard.
  • In the left-hand menu, click on Settings, then select Domains.
  • Click the Buy new domain button.
  • Type your desired domain name into the search bar and browse the available options.
  • Select your preferred domain (e.g., .com, .store, .co) and click Buy.
  • Enter your billing information to complete the purchase.

Once purchased, Shopify automatically connects the domain to your store. You'll also get free SSL (the padlock icon in the browser), which keeps your store secure and builds customer trust. Domains purchased through Shopify typically renew annually, so keep an eye on your billing cycle.

Option 2: Connect a Domain You Already Own

If you've already registered a domain through a provider like GoDaddy, Namecheap, or Google Domains, you can connect it to your Shopify store. This requires a small amount of DNS configuration, but don't worry — it's straightforward once you know what to do.

Step-by-Step: Connecting a Third-Party Domain

  • From your Shopify admin, go to Settings → Domains.
  • Click Connect existing domain and type in your domain name.
  • Shopify will display the DNS records you need to update — specifically the A record and CNAME record.
  • Log in to your domain registrar's dashboard and navigate to the DNS settings for your domain.
  • Update the A record to point to Shopify's IP address: 23.227.38.65.
  • Update the CNAME record for "www" to point to shops.myshopify.com.
  • Save your changes and return to Shopify to click Verify connection.

DNS changes can take anywhere from a few minutes to 48 hours to fully propagate, so don't panic if your domain doesn't work immediately. Most users see it go live within a couple of hours.

How to Set Your Primary Domain on Shopify

Once your domain is connected, you'll want to set it as your primary domain. This is the URL customers will see when they visit your store. Shopify will automatically redirect all other connected domains to this primary address.

  • Go to Settings → Domains in your Shopify admin.
  • Find the domain you want to use as your primary URL.
  • Click Set as primary next to it.

It's also a good idea to make sure the Redirect all traffic to this domain option is enabled. This ensures anyone who accidentally types the old myshopify.com URL gets sent straight to your custom domain.

Ready to start your Shopify store? Get 3 days free + 3 months for $1/month, plus a complete first-sales training — 100% free.

Start now — free training included

3 days free · 3 months for $1/mo · Training included

How to Customize Your Domain Settings

Beyond just connecting a domain, Shopify gives you a few useful customization options to make your setup more polished and professional.

Enable SSL for a Secure Connection

Shopify automatically provides a free SSL certificate for all connected domains. You should see a padlock icon in the browser address bar once your domain is fully active. If SSL isn't enabled, go to Settings → Domains and look for the SSL status next to your domain name. Sometimes it takes a few hours after connection for SSL to activate.

Add Subdomains for Specific Pages

Some store owners like to use subdomains — for example, blog.yourstore.com — to organize different parts of their online presence. You can add subdomains through your domain registrar's DNS settings, pointing them to the relevant destination. Shopify doesn't natively host subdomains for external content, but this is useful if you're running a separate blog or landing page.

Use Email Forwarding

Many domain registrars offer free email forwarding, so you can create a professional address like hello@yourstore.com that forwards messages to your personal inbox. This adds a layer of credibility to customer communications without needing a full business email plan right away.

Common Mistakes Beginners Make With Shopify Domains

Even with a straightforward process, a few common slip-ups can cause headaches. Here's what to watch out for:

  • Forgetting to set a primary domain: Without this step, Shopify may display the wrong URL to customers.
  • Not waiting for DNS propagation: If your domain isn't working right away, give it up to 48 hours before troubleshooting.
  • Skipping SSL verification: Always confirm your SSL certificate is active to avoid browser security warnings that drive away shoppers.
  • Losing access to your registrar account: Keep your login details safe — you'll need them whenever you make DNS changes.

Taking a few extra minutes to double-check these details can save you a lot of frustration down the road and ensure your customers always have a smooth, trustworthy experience visiting your store.

Ready to start your Shopify store? Get 3 days free + 3 months for $1/month, plus a complete first-sales training — 100% free.

Start now — free training included

3 days free · 3 months for $1/mo · Training included

Frequently Asked Questions

Can I use a free domain with Shopify?
Shopify doesn't offer free custom domains, but every plan includes a free myshopify.com subdomain. To use a professional custom domain, you'll need to either buy one through Shopify or connect one from a third-party registrar.
How long does it take for a Shopify domain to go live?
If you buy a domain directly through Shopify, it's usually active within minutes. If you're connecting a third-party domain by updating DNS records, it can take anywhere from a few hours up to 48 hours to fully propagate.
Can I connect multiple domains to my Shopify store?
Yes, Shopify allows you to connect multiple domains to a single store. However, you can only set one as your primary domain. All other connected domains will automatically redirect visitors to your primary URL.
← See all articles