@kameleoon/deno-visitor-code-manager
v1.1.0
Published
Kameleoon SDK Deno VisitorCodeManager
Downloads
32
Readme
Kameleoon Deno Visitor Code Manager
Introduction
Kameleoon Deno Visitor Code Manager is a small helper package which provides default implementation for Kameleoon NodeJS SDK external Visitor Code Manager to manage cookie.
For more information refer to Official Kameleoon Documentation
Contents
Installation
- npm -
npm install @kameleoon/deno-visitor-code-manager
- yarn -
yarn add @kameleoon/deno-visitor-code-manager
- pnpm -
pnpm add @kameleoon/deno-visitor-code-manager
- bun -
bun install @kameleoon/deno-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/deno-visitor-code-manager';
const client = new KameleoonClient({
siteCode: 'my_site_code',
credentials: {
clientId: 'my_id',
clientSecret: 'my_secret',
},
externals: {
visitorCodeManager: new KameleoonVisitorCodeManager(),
},
});