> 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.onConsentPolicyChanged(handler: ConsentPolicyChangedHandler) # Method Link: https://dev.wix.com/docs/sdk/host-modules/site/consent-policy-manager/on-consent-policy-changed.md # Method Description: Triggered when a site visitor's consent policy was changed using setConsentPolicy() or reset using resetConsentPolicy(). Use the onConsentPolicyChanged() method for code you want to run after the site visitor's current consent policy was changed. # Method Permissions: # Method Permissions Scopes IDs: undefined # Method Code Examples: ```javascript ```typescript import { consentPolicyManager } from '@wix/site'; consentPolicyManager.onConsentPolicyChanged((event) => { const policy = event.policy; console.log(event); }); // Full event object: // { // "defaultPolicy": false, // "policy": { // "functional": false, // "analytics": true, // "advertising": false, // "dataToThirdParty": false, // "essential": true // } // } ``` ```