Skip to content
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

[MWPW-152968] mWeb - Passing ECID to Branch.io banner - Implementation #2772

Merged
merged 3 commits into from
Sep 2, 2024

Conversation

drashti1712
Copy link
Contributor

  • When a user who has opted into both analytics and advertising cookies and is using Android device, their unique ECID is passed to Branch.
  • These changes were approved and merged last month ( PR: 2567) but were later reverted as we needed to wait for PIA approval. We are now re-opening this PR as we have received the PIA approval for this.

Resolves: MWPW-152968

Test URLs:

Copy link
Contributor

aem-code-sync bot commented Aug 21, 2024

@drashti1712 drashti1712 added the needs-verification PR requires E2E testing by a reviewer label Aug 21, 2024
Copy link

codecov bot commented Aug 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.92%. Comparing base (2abe70f) to head (dcc46cb).
Report is 22 commits behind head on stage.

Additional details and impacted files
@@           Coverage Diff           @@
##            stage    #2772   +/-   ##
=======================================
  Coverage   95.91%   95.92%           
=======================================
  Files         173      173           
  Lines       45831    45861   +30     
=======================================
+ Hits        43958    43990   +32     
+ Misses       1873     1871    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@spadmasa spadmasa self-assigned this Aug 21, 2024
const performanceCookieConsent = cookieGrp.includes('C0002');
const advertisingCookieConsent = cookieGrp.includes('C0004');

if (performanceCookieConsent && advertisingCookieConsent && isAndroid) branch.setBranchViewData({ data: { ecid: ecidVal }});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why only for android?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

legal requirement as far as I remember

@@ -63,5 +81,7 @@ export default async function init(el) {
const classListArray = Array.from(el.classList);
const product = classListArray.find((token) => token.startsWith('product-')).split('-')[1];
const key = await getKey(product);
if (key) branchInit(key);
if (!key) return;
const ecid = await getECID();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can get the ecid directly in the branchInit method, no need to pass the value.

Copy link
Contributor

This PR is currently in the needs-verification state. Please assign a QA engineer to verify the changes.

@spadmasa
Copy link

Validation done on the pr in the below url :
https://main--cc--adobecom.hlx.page/drafts/Souj/branch-io/branch-io-page12?milolibs=branch-ecid--milo--drashti1712
ecid value is seen passed for android and seen matching in branch
image
image

details are updated in ticket
https://jira.corp.adobe.com/browse/MWPW-152968

@spadmasa spadmasa added verified PR has been E2E tested by a reviewer Ready for Stage and removed needs-verification PR requires E2E testing by a reviewer labels Aug 26, 2024
@milo-pr-merge milo-pr-merge bot merged commit 77268c0 into adobecom:stage Sep 2, 2024
21 checks passed
@milo-pr-merge milo-pr-merge bot mentioned this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready for Stage verified PR has been E2E tested by a reviewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants