html> Verification: 6bff6d681e3bdcc4
import { consentPolicy } from "wix-window-frontend"; // ... const myPolicy = { essential: $w("#essentialCheckbox").checked, analytics: $w("#analyticsCheckbox").checked, functional: $w("#functionalCheckbox").checked, advertising: $w("#advertisingCheckbox").checked, dataToThirdParty: $w("#dataToThirdPartyCheckbox").checked, }; consentPolicy .setConsentPolicy(myPolicy) .then((policyDetails) => { const newPolicy = policyDetails.policy; return policyDetails; }) .catch((error) => { console.error(error); }); /* policyDetails value: * { * "defaultPolicy" : false, * "policy" : { * "essential" : true, * "functional" : false, * "analytics" : false, * "advertising" : false, * "dataToThirdParty" : false * }, * "createdDate" : 2020-12-20T12:33:09.775Z * } */ Privacy settings
top of page
bottom of page