Shopify Installation
Add virtual product visualization to your Shopify store with our easy embed code.
Requirements
- A Shopify store (any plan)
- A Tap and Try account (free tier available)
- Access to your theme's code editor
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 manually
- Upload product images (backgrounds will be removed automatically)
- Set the checkout URL to your Shopify product page
- Publish the product
Step 3: Add the Widget to Your Theme
Add the Tap and Try widget script to your Shopify theme:
- In Shopify admin, go to Online Store → Themes
- Click Actions → Edit code on your active theme
- Open
theme.liquidin the Layout folder - Add this code just before the closing
</body>tag:
<script src="https://tapandtry.com/widget.js" data-api-key="YOUR_API_KEY" ></script>
Replace YOUR_API_KEY with your actual API key.
Step 4: Add the Button to Product Pages
Add a "Try It On" button to your product template:
- In the theme editor, find your product template (usually
product.liquidor insections/product-template.liquid) - Add this button where you want it to appear:
<button
class="tapandtry-button"
data-product-id="{{ product.id }}"
style="background: #3b82f6; color: white; padding: 12px 24px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600;"
>
Tap & Try It
</button>✨ Adding Products to Tap and Try
Since Shopify 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 Shopify 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.
💡 Tip: Product Matching
When adding products to Tap and Try, use your Shopify product ID as the "External ID" field. This allows the widget to automatically match products.
Alternative: Manual Button Placement
If you prefer more control, you can trigger the visualizer programmatically:
<button onclick="TapAndTry.open('your-product-slug')">
Try It On
</button>Styling the Button
Customize the button appearance to match your store's design. The button is a standard HTML element that you can style with CSS.
Troubleshooting
Button not working?
- Verify the widget script is loaded (check browser console for errors)
- Ensure your API key is correct
- Check that the product exists in your Tap and Try dashboard
- Verify the product ID or slug matches
Widget not loading?
- Check for JavaScript errors in the browser console
- Ensure the script is placed before
</body> - Try disabling other apps temporarily to check for conflicts
Need Help?
Visit our Help Center for more guides and troubleshooting, or contact our support team.