Shopify Buy Button: Selling Outside Your Store
How to use the Shopify Buy Button to sell products on blogs, landing pages, WordPress sites, and anywhere outside your Shopify store.

Mark Cijo
Founder, GOSH Digital
Shopify Buy Button: Selling Outside Your Store
Your Shopify store is not the only place you can sell. In fact, limiting your sales to your store means you're missing every place your customers already spend their time: your blog, your partner's website, your email newsletter, your landing pages, and your content marketing.
The Shopify Buy Button changes that. It's an embeddable widget that lets customers browse products and complete purchases from any website, without ever visiting your Shopify store.
Most Shopify merchants don't know it exists. The ones who do usually underestimate what it can do. Let me show you the use cases that actually matter.
What the Buy Button Actually Is
The Shopify Buy Button is a JavaScript snippet that you embed on any webpage. It renders a product card (with image, title, price, and variant selector) and a "Buy Now" or "Add to Cart" button. When a customer clicks it, they either go through a mini checkout overlay or get redirected to your Shopify checkout.
It's essentially a piece of your Shopify store that you can put anywhere on the internet.
You create Buy Buttons in the Shopify admin under Sales channels. Add the Buy Button channel, select a product or collection, customize the appearance, and Shopify generates a code snippet. Copy that snippet and paste it into any HTML page.
Use Case 1: Blog Content Commerce
This is the biggest opportunity for most brands.
If you publish blog content (on Shopify's blog, WordPress, or any other platform), you can embed Buy Buttons directly within the content. A blog post about "How to Build the Perfect Morning Skincare Routine" can have Buy Buttons for each recommended product embedded right in the article.
The reader doesn't have to navigate away from the article to shop. They read about the cleanser, see the Buy Button, add it to cart, keep reading, add the moisturizer, keep reading, add the serum, and check out. The content IS the store.
This works particularly well for:
- "Best of" and roundup posts
- How-to guides that reference specific products
- Gift guides and curated lists
- Product comparison articles
If your blog lives on WordPress (which is common even for Shopify stores), the Buy Button is how you bridge the gap between content and commerce without migrating your blog to Shopify.
Use Case 2: Landing Pages
Running paid ads to a Shopify collection page works, but sometimes you want a custom landing page with specific messaging, testimonials, and a focused product selection. You might build this landing page on Unbounce, Instapage, Webflow, or even a simple HTML page.
Embed Buy Buttons on the landing page for the featured products. The visitor gets a customized marketing experience AND the ability to purchase without leaving the page.
This is especially powerful for:
- Product launch campaigns
- Influencer collaboration landing pages
- Seasonal promotions with specific themes
- A/B testing different sales approaches
Use Case 3: Partner and Affiliate Sites
If you work with affiliates, bloggers, or partner brands, you can give them Buy Button code to embed on their sites. The customer buys from the partner's website, but the order processes through your Shopify store. You handle fulfillment, customer service, and inventory.
This extends your sales reach to every website that promotes your products, without those sites needing their own eCommerce infrastructure.
Use Case 4: Email and Digital Products
While you can't embed JavaScript in email directly (email clients strip it), you can use the Buy Button approach conceptually: link directly to a Buy Button-enabled landing page from your email. Instead of linking to your full product page (which has distracting navigation, related products, and other click-away opportunities), link to a stripped-down page with just the product Buy Button and checkout.
This reduces friction between "I want this" and "I bought this."
Use Case 5: Non-Shopify Websites
Some businesses have a primary website that's not on Shopify — maybe a WordPress brochure site, a Squarespace portfolio, or a custom-built website. They use Shopify purely for commerce.
The Buy Button lets you add shopping functionality to any existing website without rebuilding it on Shopify. Your company website stays on whatever platform it's on. You add Buy Buttons where you want to sell. Shopify handles the cart, checkout, payment, and order management.
This is sometimes called "headless commerce lite." You're separating the storefront (your existing website) from the commerce engine (Shopify).
Setting Up the Buy Button
Step-by-step:
- In Shopify admin, go to Settings, then Apps and sales channels
- Add the "Buy Button" sales channel (if it's not already installed)
- Go to the Buy Button channel and click "Create a Buy Button"
- Choose whether you want a single product or a collection
- Select the product(s)
- Customize the appearance: layout, colors, button text, font, and whether to use a cart overlay or redirect to Shopify checkout
- Copy the generated code
- Paste the code into the HTML of whatever page you want it on
For WordPress, you can paste the code into an HTML block in the Gutenberg editor. For other platforms, find the "Custom HTML" or "Embed Code" option.
Customization Options
The Buy Button is more customizable than most people realize:
Layout options:
- Full product card (image, title, price, variants, button)
- Product with cart (adds a mini cart sidebar)
- Collection (multiple products in a grid or list)
- Cart only (for pages where you've already displayed product info)
Visual customization:
- Button color, text, and font
- Product title and price font and color
- Layout width and alignment
- Image size and aspect ratio
- Whether to show or hide specific elements (title, price, description, variants)
Behavior options:
- Open cart in an overlay on the same page
- Redirect to Shopify checkout
- Open Shopify checkout in a new window
- Add to cart without opening cart (for multi-product pages where you want customers to add several items before checking out)
Match the Buy Button styling to the host website's design. A Buy Button that looks like it belongs on the page converts better than one that clearly looks like an embedded widget.
Technical Considerations
Page load impact. The Buy Button loads a JavaScript file from Shopify's CDN. It's not heavy (about 100KB), but on a performance-sensitive page, it's something to be aware of. Lazy-load the Buy Button if it's below the fold.
Cart persistence. The Buy Button cart uses cookies. If a customer adds a product to their cart on your blog, then visits your Shopify store, the cart contents may not sync (unless you're using the same Shopify domain). Be aware of this limitation if customers move between your embedded Buy Buttons and your main store.
Inventory sync. Buy Button purchases pull from the same inventory as your Shopify store. If a product sells out on your store, it's also sold out via the Buy Button. Inventory management is centralized in Shopify.
Analytics. Buy Button purchases show up in your Shopify analytics and order history. You can track which sales channel generated each order. For more detailed attribution (which blog post or landing page generated the sale), use UTM parameters on the checkout URL.
Mobile responsiveness. The Buy Button is responsive by default, but test it on mobile for each page where you embed it. Some page layouts can cause the Buy Button to render oddly on small screens.
Advanced: Shopify Storefront API
If the Buy Button's built-in customization isn't enough, Shopify's Storefront API gives you full programmatic control. You can build completely custom shopping experiences on any website while using Shopify's cart and checkout.
This is the approach for brands that want deeply integrated commerce on a non-Shopify site — custom product displays, dynamic cart experiences, and seamless checkout. It requires development work (JavaScript, React, or another framework), but it's the most flexible option.
For most brands, the standard Buy Button is sufficient. The Storefront API is for when you've outgrown the widget approach.
Measuring Buy Button Performance
Track these metrics:
- Revenue from Buy Button channel. In Shopify analytics, filter by sales channel. How much revenue is the Buy Button generating?
- Conversion rate by page. Use UTM parameters to identify which pages drive the most Buy Button purchases. Double down on those pages.
- Average order value. Is the AOV from Buy Button purchases different from main store purchases? Collection Buy Buttons (showing multiple products) often generate higher AOV than single product buttons.
- Cart abandonment. If using the overlay cart, track how many people add to cart vs. complete checkout. High abandonment might mean the checkout redirect is losing people.
The Bottom Line
The Shopify Buy Button turns every piece of content, every landing page, and every partner website into a potential sales channel. It's underused, easy to implement, and directly tied to revenue.
If you create content, run paid campaigns, or work with partners, you should be using Buy Buttons. Put the ability to buy wherever your customers already are — don't make them come to you.
Want help building a multi-channel sales strategy for your Shopify store? Book a call with us. We'll map out where your customers spend their time and put Buy Buttons in front of them.

Written by Mark Cijo
Founder of GOSH Digital. Klaviyo Gold Partner. Helping eCommerce brands grow revenue through data-driven marketing.
Book a free strategy call →