Skip to content

$fn.getCookieContent()

This built-in function was added in v4.0.0.

A function to retrieve cookie consent information. [Async]

Arguments

None

Return value

TypeDescription
objectThe cookie consent information object set by $fn.SetCookieContent()

Example

const cookie = await $fn.getCookieContent();
console.log(cookie);
// { functional: true, analytics: true, marketing: true }