Manage consent & Processing activities
Register processing activities, capture user choices, and enforce them with privacy walls.
Your goal
Store the choices your users make, and have the platform enforce them automatically - blocking the storage of data you are not entitled to keep, and keeping users out of segments they should not be in.
Expected outcome
Processing activities registered, choices arriving from your sources, and privacy walls in place on the channels, compartments, and segments that need them.
The steps, in order
Register processing activities in the platform, representing what you expect to do with the data and its legal basis.
Record user choices as events, wherever the user acknowledges what is done with their data. The choices and their history are stored per user.
Implement privacy walls by linking your channels, compartments, and segments to the relevant processing activities.
The legal groundwork that precedes these steps is in Define your privacy & compliance framework.
Processing activities
A processing activity represents what you expect to do with the data. In GDPR terms it pairs a purpose with a legal basis; the GDPR requires you to define the purposes of your data collection, and each processing must have an associated legal basis.
Processing activities are defined at community level.
id
String
The primary ID on the platform, defined by the platform. Used to identify a processing in an authenticated environment.
name
String
A descriptive name, displayed in the interface dropdowns.
purpose
String
The explained purpose of your processing. Must be consistent with the information you gave your users.
legal_basis
Enum
The legal basis. Can only be set at creation, and cannot be modified later.
technical_name
String
External ID, for use by authenticated API only.
token
String
External ID, for use when capturing choices from a website with the JavaScript tag.
community_id
String
Processing entries are defined at community level.
archived
Boolean
Deactivates and hides a processing. No new choice can be attached to an archived processing, and it is no longer displayed.
Create a processing activity
Go to Settings > Organisation > Processing Activities and use New Data Processing.
Select the legal basis
This comes first because it determines the type of user choice you can capture - consent, consent refusal, or opposition. Once the processing is created, the legal basis cannot be modified, as choices may already have been captured.
What each basis implies is tabulated in Define your privacy & compliance framework.
Processings can be listed with GET /v1/processings?community_id=:communityId, and updated or deleted on /v1/processings/:id.
User choices
A user choice represents the choice a user makes for one of your processing activities.
Each time a user makes a choice, you send it as a user event named $set_user_choice with a set of metadata; it is then computed and stored. Choices can also be created directly by API.
The fields of a choice, and how to declare choices in the schema, are in UserChoice.
Capture choices
The integration types, each for a different situation.
Strongly recommended when you have a CMP on your website capturing choices. It captures the choice at the source and at the moment it is made, with minimal integration cost.
The setup mirrors regular website tracking:
Prepare a JavaScript snippet with a
$set_user_choiceevent.Place it so that it is triggered every time a user gives a choice on the CMP.
When executed, the snippet loads the mediarithmics tag and a pixel that pushes the choice event. Server-side, the platform associates the choice with the user and the related processing activity.
See Web tracking.
Recommended when choices come from files you export from another system - an initial load from a CRM or a back-end consent repository, for instance.
See Import user consent and Import user choices.
Recommended when an application in your landscape acts as master data management for user choices, storing them from several sources.
The platform exposes APIs to get, update, and delete a user choice for one user, based on any of their identifiers - including a change log endpoint for history. See Server-side events.
A choice can also be set directly on the UserPoint, without creating a user activity.
Privacy walls
A privacy wall uses user choices to automatically allow or block the processing of personal data for a given user. Walls exist at several levels, and the rule differs by level.
Channel
UPSERT of user activities of type SITE_VISIT and APP_VISIT
The upsert is allowed if the user has allowed at least one of the linked processing activities.
Compartment
UPSERT of user profiles
The upsert is allowed if the user has allowed at least one of the linked processing activities.
Segment
Segment computation
The user is allowed in the segment if they have allowed all the linked processing activities.
Activities of type TOUCH, EMAIL, and DISPLAY_AD are not covered yet. User choices are not supported for the User Activation and Edge segment types.
To configure one, go to the settings of the object you want to link and add the processing activities. The channel and compartment procedures are in Channels and Compartments; the segment procedure is in Enforce compliance on your audience.
What happens when a user changes their mind
This differs by object type, and the difference matters:
Upserted data - activities, profiles, USER_LIST segments
The decision to upsert or drop is taken just before saving into the datamart. New upserts are blocked, but data already captured is kept and follows the standard cleaning rules.
USER_QUERY segments
The segment query is automatically extended with conditions on user choices, so the user exits the segment - they no longer match the query.
For activities, the decision takes into account the presence of a $set_user_choice event in the activity itself, which is what makes the client-side integration work on a first visit.
When several sources set the same choice
When a new choice overwrites an existing one on the same processing, you may need a priority based on where the choice came from - user settings in a logged-in environment versus a CMP popup, or a direct exercise of rights versus a CMP cache in the browser.
The optional $choice_source_id field relates each choice to a reference table, which mediarithmics can create per client, giving each source a weight:
1001
CMP
me-cmp_local
1
1002
Website user settings
me-user_settings
2
1003
CRM file
me-member_crm_file
2
1004
Exercise of rights
me-exercise_of_rights
3
Set the source with $choice_source_token on a $set_user_choice event - the platform translates it into $choice_source_id - or with $choice_source_id directly on the /user_choices API.
How it affects updates:
A choice collected via a
$set_user_choiceevent overwrites the existing one only if its source weight is equal to or higher than the existing one's.No choice source is equivalent to the lowest weight.
The rule is not applied to a choice updated through the authenticated datamart APIs.
The rule is not applied in the case of a merge.
Choices and UserPoint merges
Choices are taken into account when two UserPoints merge, but choice updates never trigger a merge.
For a given processing, choice change logs are merged like activities in the timeline. Among the active values, the one with the latest $creation_ts is kept active on the surviving UserPoint; the other is added to the change log.
Auditing choices with OTQL
Once indexed, choices are queryable like anything else - which is how you answer an audit question or check a rollout before enforcing.
Verify
Every processing activity has a legal basis that matches what your CMP asks the user.
UserChoiceis declared in the published schema, with the four properties indexed.A count of accepting users returns a plausible number before you enforce any wall.
After enforcing, ingestion volumes for the channel do not collapse. See Monitor data ingestion.
A test user who withdraws consent stops having new data stored, and exits
USER_QUERYsegments.
Related pages
Last updated
Was this helpful?