✨ Wix UCP Implementation Guide
Make your Wix eCommerce store AI-ready. Enable ChatGPT, Google AI Mode, and AI shopping agents to discover and shop your products.
Why Add UCP to Wix?
Wix powers millions of online stores worldwide. Adding UCP (Universal Commerce Protocol) support makes your Wix store discoverable by AI shopping assistants, enabling automatic product discovery and purchases.
- Visual Editor: Wix makes building beautiful stores easy
- Velo by Wix: Use Wix's development platform for custom implementations
- Built-in Hosting: No server configuration needed
- Wix Stores Integration: Works seamlessly with Wix eCommerce
Wix does not have native UCP support as of January 2026. The methods below create a basic UCP discovery profile, but full AI agent checkout capabilities require custom Velo development to build UCP-compatible API endpoints — this is a significant development effort.
UCP profile hosting requires a Wix premium plan. The Velo method requires a plan that supports custom code. Full UCP implementation requires developer expertise.
Implementation Methods
| Method | Difficulty | Requirements |
|---|---|---|
| UCP Proxy (Shopify) | Medium | Wix OAuth App + hosting (Recommended) |
| Velo Backend | Medium | Velo-enabled plan (discovery only) |
| External Hosting | Medium | Domain with redirect (discovery only) |
Method 1: UCP Proxy by Shopify (Recommended)
UCP Proxy is an open-source proxy by Shopify that enables UCP checkout capabilities for Wix stores. It handles cart building via API and redirects to Wix's hosted checkout for payment.
Agent builds checkout via API → Proxy returns requires_escalation → Buyer completes payment on Wix checkout page. Full programmatic payment support coming soon.
- Go to Wix Developer Tools → OAuth Apps
- Create new app with permissions:
wix.ecom.cart.readwix.ecom.cart.updatewix.ecom.checkout.readwix.ecom.checkout.update
- Copy the Client ID
# Clone the repository git clone https://github.com/Shopify/ucp-proxy cd ucp-proxy # Create config file cp config.example.json config.wix.json
Edit config.wix.json:
{
"port": "8080",
"adapter_type": "wix",
"merchant_id": "my-wix-store",
"merchant": {
"store_url": "https://your-site.wixsite.com/store",
"store_domain": "your-site.wixsite.com",
"wix_client_id": "your-oauth-client-id",
"merchant_name": "My Store",
"policy_links": {
"privacy_policy": "https://your-site.wixsite.com/store/privacy"
}
}
}# Start the proxy CONFIG_FILE=config.wix.json go run ./cmd/proxy # Test discovery endpoint curl http://localhost:8080/.well-known/ucp
See the Wix setup guide for OAuth configuration and deployment details.
Method 2: Velo Backend (Discovery Only)
Use Wix Velo to create a backend HTTP function that serves your UCP profile.
- Open your Wix site in the Editor
- Click Dev Mode in the top menu
- Click Turn on Dev Mode
- In the Site Structure panel, expand Backend
- Create a new file:
http-functions.js - Add the following code:
// Backend/http-functions.js
import { ok, serverError } from 'wix-http-functions';
// This creates the endpoint: /_functions/ucp
export function get_ucp(request) {
const profile = {
profile_version: "1.0",
merchant: {
name: "Your Store Name",
url: "https://www.yoursite.com",
description: "Your store description",
contact: {
email: "support@yourstore.com"
}
},
capabilities: ["browse", "search"],
policies: {
returns_url: "https://www.yoursite.com/returns-policy",
shipping_url: "https://www.yoursite.com/shipping-policy",
privacy_url: "https://www.yoursite.com/privacy-policy"
}
};
const options = {
headers: {
"Content-Type": "application/json",
"Access-Control-Allow-Origin": "*"
},
body: JSON.stringify(profile, null, 2)
};
return ok(options);
}Create a new file routers.js in the Backend folder:
// Backend/routers.js
import { ok, WixRouterSitemapEntry } from 'wix-router';
export function wellknown_Router(request) {
if (request.path[0] === 'ucp') {
// Redirect to HTTP function
return ok('ucp-page', {});
}
}- In the Wix Editor, go to Site Menu → Add Page
- Choose Router Page
- Set prefix to
.well-known - Connect it to your router
Wix routers may have limitations with .well-known paths. If you encounter issues, use the External Hosting method below.
Click Publish to make your changes live. Your UCP profile will be available at:
https://yoursite.com/_functions/ucp(HTTP function)https://yoursite.com/.well-known/ucp(if router works)
Method 3: External Hosting with Redirect (Discovery Only)
If Velo isn't available or the router doesn't work, host your UCP profile externally and redirect.
Upload your UCP JSON file to a service like:
- GitHub Gist (get the raw URL)
- JSONBin.io
- Your own server or CDN
If you're using a custom domain with Wix, you can set up a redirect at the DNS level or use Cloudflare Workers:
// Cloudflare Worker example
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {
const url = new URL(request.url)
if (url.pathname === '/.well-known/ucp') {
const ucpUrl = 'https://your-hosted-ucp-url.com/ucp.json'
const response = await fetch(ucpUrl)
return new Response(response.body, {
headers: {
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': '*'
}
})
}
return fetch(request)
}Schema.org Markup
Wix Stores automatically adds basic Schema.org markup to product pages. For enhanced AI compatibility:
- Go to your site's SEO Settings
- Navigate to SEO Tools → Structured Data
- Ensure Product schema is enabled
Use Google's Rich Results Test to verify your product pages have proper structured data.
Validate Your Implementation
Common Issues & Solutions
| Issue | Solution |
|---|---|
| Router prefix not working | Use the HTTP function method or external hosting |
| CORS errors | Ensure Access-Control-Allow-Origin header is set |
| Dev Mode not available | Upgrade to a Wix plan that includes Velo |
| Changes not live | Make sure to click Publish after changes |
🤖 Test with AI Agents
Run AI Agent Simulation
Test how AI shopping agents will interact with your Wix store.
Open Simulator →