CookieInformation
Setting and updating iPaper Consent
const instance = iPaperJsApi(3);function setIpaperConsent() {
// Get consent for each category
/* By default, the below will be the names for the categories. However,
dependent on your specific set-up, these can have custom names instead */
const allowPerformanceCookies = CookieInformation.getConsentGivenFor('cookie_cat_statistic') ? true : false;
const allowFunctionalCookies = CookieInformation.getConsentGivenFor('cookie_cat_functional') ? true : false;
const allowAdvertisingCookies = CookieInformation.getConsentGivenFor('cookie_cat_marketing') ? true : false;
// Set iPaper consent to match the above
instance.consent.set({
allowPerformanceCookies,
allowFunctionalCookies,
allowAdvertisingCookies
});
}Showing the cookie banner
Last updated