UNPKG

@hhgtech/hhg-components

Version:
14 lines (13 loc) 829 B
import type { DataTrackingTypeHTMLElement } from "../../../types"; export declare const BOOST_POPUP_TRACKING_CATEGORY = "Popup Suggest Article"; export declare const BOOST_POPUP_GTAG_EVENTS: { readonly swipeToClose: "swipe_to_close"; }; export declare const BOOST_POPUP_TRACKING_ACTION: { readonly closeCard: "Close card"; readonly viewDetail: "View detail"; }; /** Prefer prop/ref URL; if missing (stale parent, first paint), use live location at send time. */ export declare function resolveBoostPopupEventLabel(propUrl: string | undefined): string; export declare function pushBoostPopupDataLayerEvent(eventName: string, eventAction: string, eventLabel: string | undefined): void; export declare function boostPopupTrackingData(action: string, label: string | undefined): DataTrackingTypeHTMLElement;