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