---
title: "Shopify Setup Guide - Serpwise Documentation"
description: "Connect a Shopify storefront to Serpwise, verify the routing setup, and confirm that edge changes work without modifying the theme."
url: "https://serpwise.ai/docs/shopify/"
source: "https://serpwise.ai/docs/shopify/"
---
[Back to Serpwise](/)

Serpwise Documentation

Connect · Configure · Execute

Search documentation

`/`

No documentation found.

↑↓ Navigate Enter to open

Browse documentation

Setting up Serpwise with a Shopify store requires a specific DNS and domain configuration to handle Cloudflare’s Cross-User bans and ensure your internal Shopify domain isn’t indexed by search engines.

## 1. Domain and DNS Configuration

Shopify uses Cloudflare Enterprise for their edge network. If you also use Cloudflare for your domain’s DNS, pointing your custom domain directly to Shopify’s IPs via the Serpwise proxy will trigger a **Cloudflare Error 1014 (Cross-User Ban)**.

To bypass this without triggering Cloudflare’s security rules, Serpwise needs Shopify to return your site’s content directly when requested via your `.myshopify.com` domain, rather than redirecting to your custom domain.

**Step-by-step setup:**

1. **Update the Primary Domain:** Go to your **Shopify Admin** &gt; **Settings** &gt; **Domains**.
2. **Select your `.myshopify.com` domain:** Click on your original Shopify domain (e.g., `your-store.myshopify.com`).
3. **Set as primary:** Click **“Set as primary”**.
4. **Keep your custom domain connected:** Do NOT remove your custom domain (e.g., `www.yourdomain.com`) from your Shopify domains list. It must remain connected as an alias domain so that Shopify continues to provision the SSL certificates required for secure connections.

When your `.myshopify.com` domain is primary, Serpwise can request it directly. Before Serpwise delivers the page to your visitors, its internal HTML rewriter automatically replaces all references to your `.myshopify.com` domain back to your custom domain, protecting your SEO.

## 2. The Liquid `noindex` Trick

Because your `.myshopify.com` domain is now set as primary, Shopify no longer redirects it to your custom domain. It is technically accessible to the public.

To ensure Google *never* indexes the `.myshopify.com` version and avoids duplicate content penalties, you should dynamically inject a `noindex` tag using Shopify’s Liquid templating.

1. In your Shopify Admin, go to **Online Store** &gt; **Themes**.
2. Click **…** next to your live theme and select **Edit code**.
3. Open `layout/theme.liquid`.
4. Right below the `<head>` tag, add this exact snippet:

```
{% if request.host contains 'myshopify.com' %}
  <meta name="robots" content="noindex, nofollow">
{% endif %}
```

**Why this works:** If Googlebot crawls the `.myshopify.com` URL directly, Shopify will serve the `noindex` tag, telling Google to drop it from search results. But when Googlebot crawls your main domain (via Serpwise), the URL does not contain `myshopify.com`, so the tag is hidden and your custom domain indexes perfectly.