-
Notifications
You must be signed in to change notification settings - Fork 190
MWPW-172886 [MEP] Support MEP AICS pzn tags recieved from API REWORKED #4358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: stage
Are you sure you want to change the base?
Conversation
…sonalization and utils modules
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
|
This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR. |
…query parameters from lastVisitedPage
…ronment and sanitize lastVisitedPage
This PR has not been updated recently and will be closed in 7 days if no action is taken. Please ensure all checks are passing, https://github.com/orgs/adobecom/discussions/997 provides instructions. If the PR is ready to be merged, please mark it with the "Ready for Stage" label. |
This PR adds experience targeting by LOB (Line of Business) to MEP. The new keyword to use in MEP manifests is 'lob-' (example: 'lob-b2b).
This new feature requires an api call via getSpectraLOB() located in utils.js. If the api call promise is not resolved before utils.js calls init() in personalization.js, then the promise will be passed via the entitlements object. The promise will be resolved before hasMatch() is called in personalization.js.
Added features
Misc bugfixes
Expected behavior/requirements to use
Concerns (needs resolution before merging to Main)
Resolves: MWPW-174352
PSI check: https://targetbylobrework--milo--adobecom.aem.page/?martech=off
How to test
There's a single page for testing. Depending on the lob spoofed, the marquee headline will change. Make sure to enable mobile device in chrome dev tools if the test case lists Device: Phone.
qa manifest location:
https://main--cc--adobecom.aem.page/drafts/mepdev/fragments/2025/q3/targetbylob/manifest.json
Case 1
note: This is the most important use case as the actual API call is made on this link. The other links are making sure the spoof and MEP modifier works
LOB is not spoofed, confirm LOB is CC after 2nd hit on page
https://main--cc--adobecom.aem.page/drafts/mepdev/fragments/2025/q3/targetbylob/lobmarquee?milolibs=targetbylobrework
Headline on 1st hit (all): ALL experience.
Headline on 2nd hit: LOB-CC -or- LOB-STD on phone
Case 2
LOB is CC
https://main--cc--adobecom.aem.page/drafts/mepdev/fragments/2025/q3/targetbylob/lobmarquee?milolibs=targetbylobrework&lob=cc
Headline: LOB-CC -or- LOB-STD on phone
Case 3
LOB is STD AND Device: Phone
https://main--cc--adobecom.aem.page/drafts/mepdev/fragments/2025/q3/targetbylob/lobmarquee?milolibs=targetbylobrework&lob=std
Headline: LOB-CC -or- LOB-STD on phone
Case 4
LOB is B2B and NOT Device: Phone
https://main--cc--adobecom.aem.page/drafts/mepdev/fragments/2025/q3/targetbylob/lobmarquee?milolibs=targetbylobrework&lob=b2b
Headline: 'LOB-B2B found NOT for phones
Case 5
LOB is B2B and Device: Phone
https://main--cc--adobecom.aem.page/drafts/mepdev/fragments/2025/q3/targetbylob/lobmarquee?milolibs=targetbylobrework&lob=b2b
Headline: LOB-B2B AND Phone