captureSource
Read attribution from a referrer, a query string, and the current URL.
Read attribution from a referrer, a query string, and the current URL.
Exported for testing and for callers assembling a source override by hand.
Import from @homepages/template-kit/browser.
Signature
Section titled “Signature”function captureSource(referrer: string, search: string, href: string): Partial<LeadSource>Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
referrer |
string |
required | |
search |
string |
required | |
href |
string |
required |
Returns
Section titled “Returns”Partial<LeadSource>