$fn.getCookieContent()
This built-in function was added in v4.0.0.
A function to retrieve cookie consent information. [Async]
Arguments
None
Return value
| Type | Description |
|---|---|
| object | The cookie consent information object set by $fn.SetCookieContent() |
Example
const cookie = await $fn.getCookieContent();console.log(cookie);// { functional: true, analytics: true, marketing: true }