Gumroad widgets allow your customers to purchase your products without leaving your website. Go to the widgets page while logged into your account, and you can create a Gumroad buy button or an embeddable product page that can be placed in your website simply by cutting and pasting some simple code.
These are not, at the moment, a solution for "shopping cart" functionality - the kind you'd find on Amazon or major retail websites. They are excellent solutions for one-off purchases though, and if you want to avoid sending customers away from your site.
While all sales made through the Gumroad payment system are subject to our strict security standards, it's a good idea to secure your site before using a Gumroad widget. The best way to do this is with an SSL certificate.
ALSO NOTE: If you are using a template to build your website, you may find that the header of your page is covering the overlay window. When this happens, the "z-index" of your website's header is too high. To fix this, make sure you can set the Z-index to 0 or 1. More on what that means here.
The Gumroad Overlay
The overlay window jumps right off of your page. You can use the button we provide you with on the widget page, or build it into your site just by linking to your products. The overlay works for single purchases as well as multiple purchases.
The buying experience of the multi-buy overlay is similar to buying on your profile page. A small "bundle" opens up in the top right corner of your page, allowing customers to buy multiple products at once.
To set up the Overlay using the Gumroad-styled buy button on your page, just log into Gumroad and go to the Widgets page.
In the dropdown menu, select the product that you want to create a button for, and edit the text on your button. All changes will go live as you type.
Click Auto-trigger the payment form to send customers directly to the payment form, bypassing the product's description. If you'd like to disable multiple purchases, click Allow single-product purchases only.
Now you're ready to copy and paste your widget code onto your site.
BUTTON: This line of code represents the Gumroad button. Its code tells your website to display the Gumroad-styled button. The second half, "Buy my product," displays what your button will say.
href="Link": This portion represents the actual product which will open when this button is clicked. To learn how to find your Gumroad products' URLs, so you can easily create buttons in the future, click here.
Reminder: If you want to use a custom buy button on your page, just follow these steps:
- Create a button icon on your page.
- Turn that icon into a link, and link to your Gumroad product's URL.
When you use the Embed, your customers can continue exploring your webpage while the payment form is open. If they buy from you, they can access their product immediately and remain on your site.
On your Widgets page, click Embed and select your product from the dropdown menu to bring up your Widget previews. If your page does not have an SSL Certificate, check the Redirect to Gumroad box. This will allow you to embed your product in your webpage, but send customers to a new tab in order to purchase your product.
Click the green button to copy your code to your dashboard. Now paste it on your site's HTML, wherever you see fit to have the product.
The second line of code represents your embedded product. Specifically:
The XXXX above is your Product ID. You can find this when editing your product (go to your Products dashboard and click the product's name to edit it). It's the "suffix" of your product's URL, which are either randomized (by default) or customized (by you).