To start using Smartlook on your website, you can install it directly in your website.
Installation
npm install smartlook-client --save
or
yarn add smartlook-client
Import
import Smartlook from 'smartlook-client'
or
const Smartlook = require('smartlook-client')
Initialize
You can call init()
using your project key which can be found in your project settings.
Smartlook.init('YOUR_PROJECT_KEY')
Recording started
This is enough for Smartlook to start recording on your website.