Wix Installation
Add virtual product visualization to your Wix website using custom code elements.
Requirements
- A Wix website (Premium plan required for custom code)
- A Tap and Try account (free tier available)
- Wix Editor or Wix Studio access
Step 1: Get Your API Key
- Create a Tap and Try account if you haven't already
- Go to your Dashboard → Settings → API Keys
- Create a new API key and copy it
Step 2: Add Products
- Go to your Tap and Try Dashboard
- Click New Product to add products
- Upload product images (backgrounds will be removed automatically)
- Set the checkout URL to your Wix product page
- Publish the product and note the product slug
Step 3: Add the Widget Script
Add the Tap and Try widget to your Wix site:
Using Wix Editor
- Open your site in the Wix Editor
- Click Settings in the left menu
- Select Custom Code under Advanced
- Click + Add Custom Code
- Paste the following code:
<script src="https://tapandtry.com/widget.js" data-api-key="YOUR_API_KEY" ></script>
- Set placement to Body - end
- Choose to load on All pages or specific pages
- Click Apply
Step 4: Add the Try It On Button
Add a button to your product pages that opens the visualizer:
Option A: Using an HTML Embed
- In the Wix Editor, click Add Elements (+)
- Go to Embed Code → Embed HTML
- Drag the element to your product page
- Click Enter Code and paste:
<button
onclick="TapAndTry.open('your-product-slug')"
style="background: #3b82f6; color: white; padding: 12px 24px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-family: inherit;"
>
Tap & Try It
</button>Replace your-product-slug with your actual product slug from the Tap and Try dashboard.
✨ Adding Products to Tap and Try
Since Wix doesn't have a direct plugin, you'll add products manually from your Tap and Try dashboard:
- • Upload product images (backgrounds auto-removed)
- • Set product names, descriptions, and prices
- • Add checkout URLs linking back to your Wix store
- • Create variants for different colors/options
📝 Dashboard Customization
From your dashboard you can also: upload custom variant images (with or without background removal), set default backgrounds, enable Floor Mode for rugs/tiles, adjust button text, and more.
Option B: Using Wix Velo (Advanced)
For dynamic product pages, you can use Wix Velo to automatically set the product:
- Enable Velo Dev Mode in your Wix Editor
- Add a button element to your product page
- Add this code to your page:
import wixWindow from 'wix-window';
$w.onReady(function () {
$w('#tryItButton').onClick(() => {
// Get product slug from your data
const productSlug = $w('#dynamicDataset').getCurrentItem().slug;
wixWindow.postMessage({ type: 'tapandtry-open', slug: productSlug });
});
});💡 Tip: Product Slugs
Each product in Tap and Try has a unique slug (e.g., "blue-velvet-sofa"). You can find this in your dashboard when viewing the product details.
Wix Stores Integration
If you're using Wix Stores, you can match products by using the Wix product ID as the "External ID" in Tap and Try. This allows for easier product matching on dynamic store pages.
Troubleshooting
Button not working?
- Ensure the widget script is added to your site's custom code
- Verify your API key is correct
- Check that the product slug matches exactly
- Make sure the product is published in Tap and Try
Custom code not appearing?
- Custom code requires a Wix Premium plan
- Publish your site after adding custom code
- Check the browser console for JavaScript errors
Styling issues?
- HTML embeds may need explicit font-family styles
- Use inline styles for consistent appearance
- Test on both desktop and mobile views
Need Help?
Visit our Help Center for more guides and troubleshooting, or contact our support team.