Shopify Setup Guide

Configure SerpWise to work seamlessly with your Shopify store.

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 > Settings > 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 > 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.

On this page