supermarketer-web-sdk
v1.0.1
Published
Handle custom events and wrapper for pre-existing events.
Readme
Installation
To install SuperMarketer's Web SDK via NPM, open your web project and run the following command in the terminal:
npm i supermarketer-web-sdkInitialization
Once the installation is complete, follow the steps below to initialize the SuperMarketer SDK:
- Import the SuperMarketer package in the files where you want to use the SuperMarketer methods.
import SuperMarketer from 'supermarketer-web-sdk';- Add the SuperMarketer's
init()method in the file that represents the landing page of your website and pass the API key (created from the SuperMarketer dashboard) and the website URL as the parameters.
SuperMarketer.init('<Public API Key>', '<Website URL>');