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.
The function to run when the consent policy changes
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.