Tutorial: Launch your first campaign storefront
In this tutorial you’ll build a working campaign storefront backed by your Shopify catalog. We’ll use Comet’s GraphQL API to:- Fetch products for a campaign collection
- Create a checkout flow
- Launch it as a satellite storefront via the Comet console
Overview
A campaign storefront in Comet is a standalone, URL-addressable store page designed for a specific campaign (product launch, seasonal sale, social commerce drop). It:- Pulls products from your existing Shopify catalog
- Has its own URL (e.g.
your-brand.satellites.comet.rocks/summer-launch) - Handles checkout through Comet’s federated cart API
- Can be embedded or shared as a link (e.g. on social media, email, ads)
Part 1: Select your campaign products
First, identify the products you want to feature. Use tags or a collection ID from Shopify.Query products by collection
Tip: externalId is the Shopify product GID. Use this to cross-reference with Shopify Admin.
Part 2: Build the checkout flow
A complete checkout in Comet follows this sequence:1. Create a cart
2. Add campaign products
3. Apply shipping address
4. Select shipping method
Take theid of your chosen shipping method from the response above:
5. Create payment intent
clientSecret with Stripe.js to collect payment on the frontend.
6. Submit the order
externalOrderId is the Shopify order GID.
Part 3: Launch on a satellite storefront
Now publish this campaign as a live URL using the Comet console.- In console.comet.rocks, navigate to Storefronts
- Click New Storefront
- Set:
- Name:
Summer Launch - Slug:
summer-launch→ your URL will beyour-brand.satellites.comet.rocks/summer-launch - Organization: select your Shopify org
- Name:
- Under Products, add the product IDs from Part 1
- Click Publish
What’s next?
- Custom domain: Point a subdomain (e.g.
launch.yourbrand.com) tosatellites.comet.rocksvia CNAME - Styling: The satellite storefront supports custom CSS and logo upload from the console
- Discount codes: Use cartApplyCoupons to support promo codes
- Analytics: Each storefront tracks conversion events — view them in the console under Analytics
- Multi-merchant campaigns: Add products from multiple connected stores to the same cart