UNPKG

unified-datalayer

Version:

A multi-framework utility package for managing XP Data Layer events

29 lines (28 loc) 732 B
import { BaseModule } from "../Base"; /** * Page module interface for tracking page-related events */ export interface PageMod { /** * Track a home page view */ home(): void; /** * Track a page view for any page type * @param pageType Type of page (e.g., "category", "search", "checkout") * @param action The action performed on the page (default: "view") */ view(pageType: string, action?: string): void; /** * Track a page error */ error(): void; } /** * Implementation of the Page Module interface */ export declare class PageImpl extends BaseModule implements PageMod { home(): void; view(pageType: string, action?: string): void; error(): void; }