Files
agency/.pnpm-store/v3/files/74/f2868f03a700bc10b87a1c9fef564b8e092c7190a4bb8bf0612e00e8ca11c7aaabbef31835179cb10d7a751ecea7b6bfbba78acd97991188a94660f6825d6f
hanzo-agent 5af6960b87 run project
Run: sess_f37640604ae254cb4d11dc6217f7b721
2026-09-30 00:04:56 +00:00

14 lines
950 B
Plaintext

import type { Attribution } from './types';
/** parseAttribution reads UTM params + ref/refCode from a query string and pairs
* them with the referrer. `search` is a location.search value ("?utm_source=…"). */
export declare function parseAttribution(search: string, referrer: string): Attribution;
/** deriveChannel classifies the visit: paid | referral | social | organic | direct. */
export declare function deriveChannel(a: Attribution): string;
/** hostOf extracts a bare lowercase host from a URL; "" when unparseable. */
export declare function hostOf(raw?: string): string;
/** hasAttribution reports whether anything was captured (so we don't persist an
* empty first-touch that would shadow a later real one). */
export declare function hasAttribution(a: Attribution): boolean;
/** isoWeek returns the ISO-8601 week label, e.g. "2026-W28". */
export declare function isoWeek(d: Date): string;
//# sourceMappingURL=attribution.d.ts.map