@kameleoon/nodejs-visitor-code-manager
v1.1.0
Published
Kameleoon SDK NodeJS VisitorCodeManager
Downloads
3,263
Readme
Kameleoon NodeJS Visitor Code Manager
Introduction
Kameleoon NodeJS Visitor Code Manager is a small helper package which provides default implementation for Kameleoon NodeJS external Visitor Code Manager to manage cookie.
For more information refer to Official Kameleoon Documentation
Contents
Installation
- npm -
npm install @kameleoon/nodejs-visitor-code-manager
- yarn -
yarn add @kameleoon/nodejs-visitor-code-manager
- pnpm -
pnpm add @kameleoon/nodejs-visitor-code-manager
- bun -
bun install @kameleoon/nodejs-visitor-code-manager
Configuration
While using @kameleoon/nodejs-sdk
:
- Import
KameleoonVisitorCodeManager
- Instantiate and pass it to external SDK dependencies
import { KameleoonClient } from '@kameleoon/nodejs-sdk';
import { KameleoonVisitorCodeManager } from '@kameleoon/nodejs-visitor-code-manager';
const client = new KameleoonClient({
siteCode: 'my_site_code',
credentials: {
clientId: 'my_id',
clientSecret: 'my_secret',
},
externals: {
visitorCodeManager: new KameleoonVisitorCodeManager(),
},
});