Home > doofinder > StatsClient

StatsClient class

Wrapper class to simplify stats calls.

Signature:

export declare class StatsClient 

Constructors

Constructor Modifiers Description
(constructor)(client)   Constructs a new instance of the StatsClient class

Properties

Property Modifiers Type Description
client   Client  

Methods

Method Modifiers Description
addToCart(params)   (BETA) Adds an amount of item to the cart in the current session.
clearCart(params)   (BETA) Clears the cart in the current session.
registerCheckout(params)   Register a checkout within the session.
registerClick(params)   Register a click on a result.
registerEvent(eventName, params, method)   Pass-through to register any custom event.
registerImageClick(params)   Register an image click during the current session.
registerRedirection(params)   Register a redirection occurred during the current session.
registerSession(params)   Registers a session ID in Doofinder.
removeFromCart(params)   (BETA) Removes an amount of item to the cart in the current session.