@aller/blink
Version:
A library for tracking user behaviour.
19 lines (18 loc) • 648 B
TypeScript
import { BlinkEvent } from '../types';
import { Page } from '../selectors/get-page-state';
/**
* Prepares a raw impression by aggregating its fields so that
* it can be sent to the server in the format aas expects.
*/
export default function prepareArticleImpressionEvent({ page, id, context, url, title, abId, personalizationSystemUsed, personalizationParametersRequested, height, width, }: {
page: Page;
id: string;
context: string[];
url: string;
title: string;
abId: string;
personalizationSystemUsed: string;
personalizationParametersRequested: string;
height: number;
width: number;
}): BlinkEvent;