urfuwo / hlx-test

Apache License 2.0
0 stars 3 forks source link

[Analytics] Track User Login Status - Iteration 2 #460

Open pahupe opened 2 months ago

pahupe commented 2 months ago

Context: Enhancement of #207

In #207, functionality was provided to correctly track the login status of users who are logged in on www.sap.com. But users who were logged in on a subdomain (support.sap.com) and then navigated to an AEM EDS page like www.sap.com/blog/ would not be recognized as logged in (as the login hand-over logic) is missing.

Task: Implement login-handover logic from subdomains.

Test-case: User is not logged in. User navigates to support.sap.com, logs in on that domain and then directly navigates to www.sap.com/blog/ The user should be tracked as "loggedIn" (see adobeDataLayer.getState() > user > loginStatus)

Ref: https://adobe-dx-support.slack.com/archives/C06SB3177F1/p1712591740928939?thread_ts=1712231909.703159&cid=C06SB3177F1 > iteration 2