Integrating the Privacy Center with Mine CMP
Connect your Privacy Center and Mine CMP so that a Do Not Sell submission automatically updates the data subject's consent state on your website.
How the two products work together
The Privacy Center and the Mine CMP serve different but complementary purposes:
- The Privacy Center handles DSR submissions — data subjects visit it to submit formal privacy requests (delete, access, do not sell, etc.)
- The Mine CMP handles on-site consent — it manages cookie consent on your website via the consent banner
By default, these two operate independently. A data subject who submits a Do Not Sell request through your Privacy Center will have their request recorded in MineOS, but their consent state on your website (managed by the CMP) is not automatically updated.
By wiring them together using the MINE.onRequestSubmitted hook and the MineCMP JavaScript SDK, you can close this gap — so that when a data subject submits a Do Not Sell request, their marketing consent on the website is withdrawn at the same moment.
Prerequisites
- The Mine CMP snippet is installed on the same page as your Privacy Center (either embedded or standalone)
- The Mine CMP is configured and active on your website
How to set it up
Add the following code to the Footer code panel in your Privacy Center's Custom code tab:
MINE.onRequestSubmitted = function(privacyRightId) {
if (privacyRightId === 'donotsell') {
MineCMP.onReady(function() {
MineCMP.withdraw(['Marketing']);
});
}
};What this does:
MINE.onRequestSubmittedfires after the data subject successfully submits the Privacy Center form- The
privacyRightIdargument contains the ID of the submitted right — the code checks if it'sdonotsellbefore acting MineCMP.onReady()ensures the CMP is fully initialized before calling any methodsMineCMP.withdraw(['Marketing'])withdraws the data subject's consent for the Marketing cookie category, reflecting their Do Not Sell preference on the website
Extending the integration
You can adapt this pattern for other privacy rights or consent categories. For example, to withdraw all optional consent categories when any right is submitted:
MINE.onRequestSubmitted = function(privacyRightId) {
MineCMP.onReady(function() {
MineCMP.withdrawAll();
});
};The available MineCMP methods for consent management are:
| Method | What it does |
|---|---|
MineCMP.withdraw(['Marketing']) | Withdraws consent for specific categories |
MineCMP.withdrawAll() | Withdraws consent for all optional categories |
MineCMP.accept(['Marketing']) | Grants consent for specific categories |
MineCMP.acceptAll() | Grants consent for all categories |
MineCMP.getConsent() | Returns the current consent state |
Available cookie categories: Necessary, Preferences, Analytics, Marketing, Unclassified.
For the full Mine CMP JavaScript SDK reference, see the JavaScript SDK Reference in the Developer Reference section.
Saving and publishing
After adding the code, click Save draft in the Custom code tab, then Publish to make the integration live.
Updated 2 months ago
