Embed products onto your own website

Embedding products in your website is very simple. AutoBuy has two different embed options.

You can view examples here: https://autobuy.io/Developers/Integrations. Look below for how to integrate.

EMBED

Start off by adding the following script tag before the end of </head> in your markup.

<script src="https://autobuy.io/js/embed.min.js"></script>

Then get your product ID. Insert this markup with your product id where it states and replace the text of the button to what best suites your site.

<button data-autobuy-product="PRODUCT_ID_HERE">Button Text</button>

POPUP

Start off by adding the following script tag before the end of </head> in your markup.

<script src="https://autobuy.io/js/paywindow.min.js"></script>

Then get your product ID. Insert this markup with your product id where it states and replace the text of the button to what best suites your site.

<button data-autobuy-product="PRODUCT_ID_HERE">Button Text</button>

Last updated