INFO
Available from version 1.22.0 of the Pixel Manager
The Pixel Manager Cookie Consent API allows you to command the Pixel Manager if you are using a custom-made cookie consent banner. The API can also be used by publicly distributed Consent Management Platforms (CMPs) to integrate with the Pixel Manager.
Accept all cookies and fire all pixels
↑ Back to toppmw.consentAcceptAll()
Adjust cookie consent selectively
↑ Back to toppmw.consentAdjustSelectively({
analytics: true,
ads: true,
})
Revoke consent for all cookies
↑ Back to toppmw.consentRevokeAll()
Cookie consent duration
↑ Back to topBy default, the Pixel Manager sets the cookie duration to 365 days.You can adjust this by passing the additional duration parameter (in an object).
pmw.consentAcceptAll({duration: 30})
pmw.consentAdjustSelectively({
analytics: true,
ads: true,
duration: 30,
})