This documentation explains how to use the Liveshop Web SDK - ADS.
Follow these 2 steps to use Liveshop Ads in your page:
- Put the following script tag near the top of the
<head>
tag and before any other script or CSS tags.
<script async src="https://assets.streamshop.com.br/sdk/liveshop-web-sdk-ads.min.js"></script>
Once step 1 is finished, you'll be able to call anytime the global function
openStreamShopLive(" PUT_YOUR_LIVE_URL_HERE ")
. It will open your live in a modal. (this commandopenStreamShopLive
is apromise
, and it's resolved when the live is closed by the user)
- Place our html tag
<liveshop-ads>
in your<body>
tag where you wish.
<liveshop-ads slug-video="ABCDEF"></liveshop-ads>
If you're unable to use custom tags (for example, with GTM), you can use an iframe as an alternative.
<iframe src="https://videocommerce.streamshop.com.br?slug-video=ABCDEF" frameBorder="0" allow="fullscreen; autoplay; playsinline; picture-in-picture; clipboard-read; clipboard-write;"></iframe>
You can get your slug-video in your store in StreamShop Dashboard