Engagement Counters
This API allows the developer to get information about the shoppers engagement with specific pages. Configuration
export type EngagementCounterType = 'Views' | 'Likes' | 'Conversions' | ' AddToCarts' | 'Checkouts';
export interface EngagementCounterAPIConfiguration extends APIConfiguration {
minValue?: number;
maxValue?: number;
metric: EngagementCounterType;
}
getEngagementCounters
export interface EngagementCounterRequest extends DmAlgRequest {
urls: string[];
}
Response
export interface CounterItem {
url: string;
count: number;
// if number was >max or <min out due to API configuration
max?: boolean;
min?: boolean;
}
export interface EngagementCounterResponse extends DmResponse {
counts: CounterItem[];
}