Why Embeds Matter
Some partners have their own high-traffic websites and don’t want to send visitors away. Product embeds let them:- Keep visitors on their site while still driving sales
- Integrate products naturally into their content
- Maintain their brand experience with your products
- Earn commissions without requiring redirects
Embed Types
Buy Button
The simplest embed—a button that adds a product to cart.- What It Does
- Best For
- Displays product with price
- “Add to Cart” button
- Opens cart or redirects to checkout
- Partner attribution preserved
Product Card Widget
A richer embed showing product details.- What It Does
- Best For
- Implementation
- Product image
- Title and price
- Short description
- Partner’s discount applied
- Add to cart functionality
- Links to full product page
Product Grid/Carousel
Multiple products in a single embed.- What It Does
- Best For
- Implementation
- Displays multiple products
- Grid or carousel layout
- Partner’s curated selection
- Bulk add or individual add
- Links to partner’s full storefront
Full Embedded Storefront
A complete shopping experience within an iframe.- What It Does
- Best For
- Considerations
- Full browsing experience
- Product search and filtering
- Cart management
- Checkout (embedded or redirect)
- Complete partner branding
Implementation Approaches
JavaScript Widget
How It Works
How It Works
- Partner adds a script tag to their site
- Script loads your widget code
- Widget renders in designated container
- Events (add to cart) communicate with your store
Pros & Cons
Pros & Cons
Pros:
- Easy for partners to implement
- Full styling control
- Dynamic content loading
- Real-time inventory/pricing
- JavaScript dependency
- Potential performance impact
- Cross-origin considerations
- Requires hosting/maintenance
Example Implementation
Example Implementation
Partner’s site:Your widget script:
Shopify Buy Button SDK
How It Works
How It Works
Shopify’s official SDK for embedding products:
- Include Shopify Buy Button script
- Initialize with your store credentials
- Create product components programmatically
- Style to match partner’s site
Setup
Setup
Adding Partner Attribution
Adding Partner Attribution
Customize the cart to include partner attribution:
iFrame Embed
How It Works
How It Works
Embed your storefront page directly:
Pros & Cons
Pros & Cons
Pros:
- Simple implementation
- Full experience embedded
- No JavaScript complexity
- Isolated styling
- Fixed height challenges
- Limited communication with parent
- SEO implications
- Mobile responsiveness issues
Responsive iFrame
Responsive iFrame
Use postMessage for dynamic height:In iframe:On partner’s site:
Partner Attribution in Embeds
Ensure every embed purchase is attributed to the partner:Cart Attributes
URL Parameters
Cookie/Storage
Styling Embeds
Brand Matching
Provide styling options so embeds match partner sites:CSS Variables
Allow CSS customization:Checkout Flow Options
Redirect to Your Store
Simplest approach—“Buy” button opens your checkout. Pros: Full checkout experience, no complexity Cons: Leaves partner’s siteCart Drawer/Modal
Open cart in overlay without leaving page. Pros: Stays on partner site longer Cons: More complex, may feel disjointedEmbedded Checkout
Full checkout within iframe/modal. Pros: Never leaves partner site Cons: Complex, security considerations, PCI compliance Recommendation: Start with redirect, graduate to more advanced as needed.Analytics & Tracking
Track Embed Performance
| Metric | What to Track |
|---|---|
| Impressions | How often embed loads |
| Clicks | Product clicks from embed |
| Add to cart | Items added from embed |
| Purchases | Orders from embed traffic |
| Revenue | Revenue attributed to embeds |
Implementation
Partner Onboarding for Embeds
Provide Partners With
Platform-Specific Guides
Create guides for where partners typically embed:- WordPress — Plugin or shortcode
- Squarespace — Code injection
- Wix — HTML embed widget
- Substack — Limited HTML support
- Ghost — HTML card
Quick Start Checklist
Related Resources
- Whitelabel & Embedded Commerce — Advanced embed strategies
- Track Your Funnel Traffic — Attribution tracking
- Connect Your Tech Stack — Technical integrations