> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: consentPolicyManager.setConsentPolicy(policy: Policy, successCallback: SetConsentPolicySuccessCallback, errorCallback: SetConsentPolicyErrorCallback) # Method Link: https://dev.wix.com/docs/sdk/host-modules/site/consent-policy-manager/set-consent-policy.md # Method Description: Sets the current site visitor's consent policy regarding allowed cookies and data transfer to 3rd parties, such as for GDPR or CCPA purposes. Changes to the consent policy take affect after the page is refreshed. # Method Permissions: # Method Permissions Scopes IDs: undefined # Method Code Examples: ## Set a member's consent policy ```javascript ```typescript import { consentPolicyManager } from '@wix/site'; const policy = { essential: true, functional: true, analytics: true, advertising: false, dataToThirdParty: false, }; const successCallback = (policyDetails: PolicyDetails) => { console.log(policyDetails); }; const errorCallback = (error: string) => { console.log(error); }; const policyDetails = await consentPolicyManager.setConsentPolicy(policy, successCallback, errorCallback); console.log(policyDetails); ``` ```