This is the recommended path for Shopify. It captures crawlers that never run
JavaScript, which a theme tag would miss entirely.
What you will do
- Put your domain on Cloudflare (a free account).
- Point your domain at your Shopify store through Cloudflare.
- Let Rankly deploy the edge worker for you.
- Confirm your first agent.
Step 1: Add your domain to Cloudflare
Create a free Cloudflare account
Sign up at cloudflare.com. The free plan is enough
to start.
Add your site
In Cloudflare, choose Add a site and enter your domain. Cloudflare scans
your existing DNS and imports it, so your email and other records carry over.
Change your nameservers
At your registrar (GoDaddy, Namecheap, Hostinger, wherever you bought the
domain), replace the nameservers with the two Cloudflare gives you. This is
the one unavoidable step for a Shopify apex domain.
Why the nameserver change is required. A Shopify apex domain
(
yourstore.com) cannot use a plain CNAME, and only Cloudflare-as-nameserver
can flatten that record so traffic reaches the edge. Without it, your apex
would point straight at Shopify and Rankly would never see the request. A
fresh domain makes this painless: there is no existing email or traffic to
preserve.Step 2: Connect Cloudflare to Rankly
You have two ways to let Rankly set up the edge worker on your domain. Both keep control in your hands.- Connect with Cloudflare (recommended)
- Scoped API token
In Rankly onboarding, click Connect with Cloudflare. You will be sent to
Cloudflare to approve access, then returned to Rankly. This is the fastest
path and nothing to copy by hand.
- Points
yourstore.comandwww.yourstore.comat your Shopify store (proxied through Cloudflare). - Deploys the Rankly edge worker and binds it to both routes.
Step 3: Set your primary domain in Shopify
In your Shopify admin, under Settings -> Domains, make sure your custom domain is set as the primary domain so shoppers and crawlers use it. If you use Cloudflare’s AI Crawl Control, set it to Allow so crawlers still reach your store; Rankly measures them, it does not block them.Step 4: Confirm your first agent
Send a test request and watch it land:Confirm your first event
What you should see in the dashboard, and how to read it.
Good to know
Does this slow down my store?
Does this slow down my store?
No. The worker proxies the request to Shopify and reports the event in the
background. Shoppers see the same response as before.
Do cookies and checkout still work?
Do cookies and checkout still work?
Is there a traffic limit?
Is there a traffic limit?
Cloudflare’s free Workers plan covers 100,000 requests per day. High-traffic
stores should add Cloudflare’s Workers Paid plan ($5/mo) in their own
account.