Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PosNegLocalStorageManager

PosNegLocalStorageManager is a utility class for manipulating Sajari's localstorage based management of PosNeg tokens. Typical use case is storing tokens for later consumption as users move through an ecommerce purchase funnel.

Hierarchy

  • PosNegLocalStorageManager

Index

Constructors

constructor

Properties

client

client: Client

currentTokens

currentTokens: Record<string | number, TokenState>

Methods

add

  • add(fieldValue: string | number, token: PosNegToken): void
  • Parameters

    Returns void

get

  • get(fieldValue: string | number): TokenState | undefined
  • Parameters

    • fieldValue: string | number

    Returns TokenState | undefined

sendClickEvent

  • sendClickEvent(fieldValue: string | number): void
  • Parameters

    • fieldValue: string | number

    Returns void

sendPendingClicks

  • sendPendingClicks(): void
  • Returns void

sendPosEvent

  • sendPosEvent(fieldValue: string | number, identifier: string, weight: number): void
  • Parameters

    • fieldValue: string | number
    • identifier: string
    • weight: number

    Returns void

Generated using TypeDoc