Would you like to embed a free product from your Tentary shop directly on your own website or landing page – without redirecting users to your shop? With the following embed script, it’s quick and easy.
Requirements
- The product must be free
- It must not have any variants
Integration
Add the following code snippet wherever you want the form to appear on your website:
<script src="https://shop.tentary.com/public/embed-subscribe.js" data-btn-text="Subscribe now" data-btn-color="#ffffff" data-btn-bg-color="#ff633e" data-btn-radius="6px" data-share-id="123abc" data-domain="yourshop.tentary.com" data-hide-name="false" async defer> </script>
The script dynamically loads the product’s form on page load and inserts it exactly where you placed the script. Visitors will immediately see the form and can fill it out and submit it, without ever leaving your site.
This setup is ideal for:
- Freebies, where users also subscribe to your newsletter
- Newsletter sign-up forms
Parameter Overview
Except for data-share-id and data-domain, all parameters are optional.
| Attribute | Description |
|---|---|
| data-share-id | The product ID (found in the URL when viewing the product). Example: https://sample.tentary.com/p/123abc |
| data-domain | Your shop domain, e.g. yourshop.tentary.com |
| data-btn-text | The text on the button |
| data-btn-color | Button text color (e.g. #ffffff or "black") |
| data-btn-bg-color | Button background color (e.g. #ffffff or "black") |
| data-btn-radius | Rounded corners in pixels ("0px", "4px", etc.) |
| data-hide-name | "true" = hide the name field, "false" = show the name field |