In this section, we explain how to get started with the StayTuned SDK for Web.


Make sure that your project meet these requirements:
  • node12.13.1 or above
  • npm or yarn


Staytuned SDK is available both on NPM and via classic script tag import. We recommend that you use the NPM package
npm package
Script tag
npm install --save @staytuned-io/sdk
There are 3 files that can be included according to your needs:
  • commonjs: staytuned-sdk.js
  • module: staytuned-sdk.esm.js
  • iife: staytuned-sdk.iife.js
<script type="module" src="[email protected]{current-version}/dist/staytuned-sdk.esm.js"></script>
<script nomodule src="[email protected]{current-version}/dist/staytuned-sdk.js"></script>
Be careful to replace {current-version} with the last production version number
Last modified 2yr ago