### Install the package Source: https://github.com/optimove-tech/optimove-sdk-web/blob/main/README.md Add the package by running: ```bash npm install @optimove-inc/web-sdk ``` -------------------------------- ### Register a new user Source: https://github.com/optimove-tech/optimove-sdk-web/blob/main/README.md Register a new user: ```typescript optimove.registerUser('', ''); ``` -------------------------------- ### Create an Optimove object Source: https://github.com/optimove-tech/optimove-sdk-web/blob/main/README.md Create an Optimove object: ```typescript import { Optimove } from '@optimove-inc/web-sdk'; const optimove = new Optimove(''); ``` -------------------------------- ### Set page visit Source: https://github.com/optimove-tech/optimove-sdk-web/blob/main/README.md Set page visit: ```typescript optimove.setPageVisit('', ''); optimove.setPageVisit(); // defaults to location.href and document.title respectively ``` -------------------------------- ### Report events Source: https://github.com/optimove-tech/optimove-sdk-web/blob/main/README.md Report events: ```typescript optimove.reportEvent('<event_name>'); optimove.reportEvent('<event_name>', { '<param1_key>': '<param1_value>' }); ``` -------------------------------- ### Set user id Source: https://github.com/optimove-tech/optimove-sdk-web/blob/main/README.md Set user id: ```typescript optimove.setUserId('<YOUR USER ID>'); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.