Skip to content

MWPW-199932 [MEP] Update Consent Policy - #6599

Open
vgoodric wants to merge 11 commits into
mepcountrytogeofrom
mepconsent
Open

MWPW-199932 [MEP] Update Consent Policy#6599
vgoodric wants to merge 11 commits into
mepcountrytogeofrom
mepconsent

Conversation

@vgoodric

@vgoodric vgoodric commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Larger goals

Update details

  • Introduced consentType to replace mktgAction in various functions and components.
  • Added logic to handle consent requirements, including consentNotSpecified and consentEnabled flags.
  • Updated manifest error handling to include consent-related errors.
  • Modified tests to reflect changes in consent handling and ensure proper functionality.
  • Enhanced analytics tracking based on consent requirements.

Resolves: MWPW-199932

Before/After

QA Instructions:
No country spoof: https://main--da-cc--adobecom.aem.page/drafts/mepdev/fragments/2026/q3/mepconsent/?mepnext=on&milolibs=mepconsent
With country spoof: https://main--da-cc--adobecom.aem.page/drafts/mepdev/fragments/2026/q3/mepconsent/?mepnext=on&milolibs=mepconsent&country=za

The page has 7 pods and 7 manifests (one to target each pod). Each pod states the manifest settings and under what conditions the pod's title should be updated. Each time, check for:

  • Each pod is updated or not updated per the description versus your cookie settings and country
  • Look in the MEP button to see if the manifests you are ineligible for are marked as such
  • Manifests that are ineligible for multiple reasons list all relevant reasons when you hover over the warning
  • The manifest missing the consent setting is always marked in red
  • Your chosen experience persisting in pod 2 even when you remove consent

Steps

  • Make sure all incognito browsers are closed.
  • Open a new incognito window.
  • Check both links (I recommend having them both open in separate tabs).
  • Update your cookies to remove advertising consent and check both links again
  • Update your cookies to remove performance consent and check both links again

Checking the new experience saving and randomizing function

  • Add performance consent back and clear cookies
  • Check that your chosen experience is saved in local storage
  • Remove performance consent and reload several times. Your experience should persist
  • Clear cookies again and clear local storage
  • Note in the network tab that Target is not called
  • Note which experience you are given and that it is now saved in local storage.
  • Reload to confirm your experience persists
  • Clear local storage and reload until you get a different experience
  • Note which experience you are given and that it is now saved in local storage.
  • Reload to confirm your experience persists

- Renamed geoRestriction to countryRestriction for clarity.
- Introduced consentType to replace mktgAction in various functions and components.
- Added logic to handle consent requirements, including consentNotSpecified and consentEnabled flags.
- Updated manifest error handling to include consent-related errors.
- Modified tests to reflect changes in consent handling and ensure proper functionality.
- Enhanced analytics tracking based on consent requirements.
@vgoodric
vgoodric requested a review from a team as a code owner August 30, 2026 08:16
@aem-code-sync

aem-code-sync Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

@jpratt2

jpratt2 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

@vgoodric
Here is the code review from Claude:
milo-mepconsent-review.docx
summary:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants