@vincentt-sdks/campaign-sdk
Version:
Campaign SDK by Vincentt
12 lines (11 loc) • 393 B
TypeScript
import { UTMParams } from '../types';
/**
* Parse UTM parameters from the current URL's query string
* @returns UTMParams object with parsed values, or undefined if no UTM params found
*/
export declare const parseUTMFromURL: () => UTMParams | undefined;
/**
* Get the document referrer
* @returns referrer URL or undefined
*/
export declare const getReferrer: () => string | undefined;