To connect your domain to Shopify and use Cloudflare as your DNS provider, you'll need to take the following steps:
- Log in to your Cloudflare account.
- Add your domain to your Cloudflare account by clicking on the "Add Site" button and following the prompts.
- Once your domain is added, Cloudflare will automatically import your DNS records from your previous DNS provider. Check to make sure that all of your DNS records have been imported correctly.
- Set up a CNAME record for your domain in Cloudflare that points to your Shopify store's subdomain. To do this, click on the DNS tab in Cloudflare and then click on "Add record." Choose "CNAME" as the record type and enter your Shopify store's subdomain as the "Name" field (e.g., if your Shopify store's URL is "mystore.myshopify.com", enter "mystore" as the name). In the "Target" field, enter "shops.myshopify.com".
- Save the CNAME record by clicking the "Save" button.
- Go to your Shopify admin panel and click on "Online Store" > "Domains".
- Click on "Connect existing domain" and enter your domain name (e.g., "example.com") in the "Connect existing domain" field.
- Shopify will automatically generate a set of DNS records that you need to add to your DNS provider (in this case, Cloudflare). Make sure to copy these records down somewhere safe.
- In Cloudflare, add each of the DNS records that Shopify provided by clicking on "Add record" and choosing the appropriate record type (e.g., A record, CNAME record, etc.).
- Save each record by clicking the "Save" button.
- Wait for your DNS changes to propagate (this can take up to 48 hours).
- Once your DNS changes have propagated, go back to your Shopify admin panel and click on "Online Store" > "Domains".
- Click on "Verify connection" to verify that your domain is properly connected to Shopify.
That's it! Your domain should now be properly connected to Shopify and using Cloudflare as your DNS provider.