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-141020: [Project PEP] Implement Analytics Enablement #1951

Merged

Conversation

robert-bogos
Copy link
Contributor

@robert-bogos robert-bogos commented Mar 4, 2024

Description

This PR enables analytics for PEP

Related Issue

Resolves: MWPW-141020

Testing instructions

  1. open the after test URL and wait for the PEP modal to show up
  2. open dev tools and watch the network tab, searching for calls to https://sstats.adobe.com/ee/irl1/v1/interact
  3. click on the X button
  4. the request payload for searched api call should have events[0].xdm.web.webInteraction.name equal to "Close Modal|PEP Modal_Photoshop" ( see screenshots )
  5. delete the dismissedAppPrompts cookie so that the modal will show up again on refresh
  6. click the "Stay on this page" button
  7. the request payload for searched api call should have events[0].xdm.web.webInteraction.name equal to "Stay on this page|PEP Modal_Photoshop" ( see screenshots )

Screenshots

Screenshot 2024-03-04 at 11 06 14 Screenshot 2024-03-04 at 11 04 07

Test URLs

Milo:

@robert-bogos robert-bogos added the needs-verification PR requires E2E testing by a reviewer label Mar 4, 2024
@robert-bogos robert-bogos self-assigned this Mar 4, 2024
@robert-bogos robert-bogos requested a review from a team as a code owner March 4, 2024 09:09
Copy link
Contributor

aem-code-sync bot commented Mar 4, 2024

Page Scores Audits Google
/drafts/rbogos/pep-prompt?imsClientId=fedsmilo PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link

codecov bot commented Mar 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (project-pep@39ddedd). Click here to learn what that means.

Additional details and impacted files
@@              Coverage Diff               @@
##             project-pep    #1951   +/-   ##
==============================================
  Coverage               ?   95.63%           
==============================================
  Files                  ?      159           
  Lines                  ?    41228           
  Branches               ?        0           
==============================================
  Hits                   ?    39428           
  Misses                 ?     1800           
  Partials               ?        0           

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

Copy link
Contributor

@overmyheadandbody overmyheadandbody left a comment

Choose a reason for hiding this comment

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

Using entitlements would not lead to the expected labels, we should have a new product name field instead.

libs/features/webapp-prompt/webapp-prompt.js Outdated Show resolved Hide resolved
libs/features/webapp-prompt/webapp-prompt.js Outdated Show resolved Hide resolved
libs/features/webapp-prompt/webapp-prompt.js Outdated Show resolved Hide resolved
libs/scripts/delayed.js Outdated Show resolved Hide resolved
libs/features/webapp-prompt/webapp-prompt.js Outdated Show resolved Hide resolved
Copy link
Contributor

@overmyheadandbody overmyheadandbody left a comment

Choose a reason for hiding this comment

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

One note, but looks good otherwise

libs/features/webapp-prompt/webapp-prompt.js Outdated Show resolved Hide resolved
@SilviuLCF
Copy link

SilviuLCF commented Mar 7, 2024

Ready for merge
QA verified - https://jira.corp.adobe.com/browse/MWPW-141020

@SilviuLCF SilviuLCF added verified PR has been E2E tested by a reviewer and removed needs-verification PR requires E2E testing by a reviewer labels Mar 7, 2024
@honstar
Copy link
Contributor

honstar commented Mar 19, 2024

As per JIRA ticket, this PR is Ready for Stage, hence marking respectively.

@Blainegunn Blainegunn merged commit 9b369f1 into adobecom:project-pep Mar 19, 2024
16 checks passed
@overmyheadandbody
Copy link
Contributor

Hey @honstar! This was actually opened against a feature branch, the code for the whole functionality is not ready for stage or production, as we're waiting for additional details. I've added this detail to the stage PR already.

It might make sense to bookmark a filter with stories ready to be merged on one of the Slack channels, such as https://github.com/adobecom/milo/pulls?q=is%3Aopen+is%3Apr+label%3A%22Ready+for+Stage%22+base%3Astage

As a personal opinion, I think it's the developer's job to make sure they follow all the steps to have their PR looked at by the MPoC, MPoCs should not have to sort out PRs. We should probably also come up with a rule that if something is open for more than X weeks, it automatically gets closed.

CC: @SilviuLCF

overmyheadandbody pushed a commit that referenced this pull request Mar 21, 2024
* pep analytics

* hotfix

* hotfix

* hotfix

* removed capitalization from analytics label
overmyheadandbody pushed a commit that referenced this pull request Apr 8, 2024
* pep analytics

* hotfix

* hotfix

* hotfix

* removed capitalization from analytics label
overmyheadandbody pushed a commit to overmyheadandbody/milo that referenced this pull request Apr 29, 2024
)

* pep analytics

* hotfix

* hotfix

* hotfix

* removed capitalization from analytics label
overmyheadandbody pushed a commit that referenced this pull request Apr 29, 2024
* pep analytics

* hotfix

* hotfix

* hotfix

* removed capitalization from analytics label
Blainegunn pushed a commit that referenced this pull request May 3, 2024
* [MWPW-139990] PEP prompt

* MWPW-142617: Microsoft Edge & Chrome Win - progress bar not completely loaded (#1882)

* hotfix

* refactor: changed loader animation logic

* update

* revert update

* more gpu acceleration for pep loader

* hotfix

* hotfix

* [MWPW-141023] PEP authoring (#1889)

* MWPW-141021: Project PEP Accessibility Requirements (#1853)

* [MWPW-139990] PEP prompt

* pep accessibility requirements

* hotfix

* hotfixes

* initial focus on close icon

* implementing feedback

* hotfix

* [MWPW-139990] PEP prompt

* MWPW-142617: Microsoft Edge & Chrome Win - progress bar not completely loaded (#1882)

* hotfix

* refactor: changed loader animation logic

* update

* revert update

* more gpu acceleration for pep loader

* hotfix

* hotfix

* [MWPW-141023] PEP authoring (#1889)

* implementing feedback

* css variables

* hotfix: moved css variables

* hotfix

---------

Co-authored-by: Rares Munteanu <overmyheadandbody@gmail.com>

* MWPW-142622: [Project PEP] Close button focus  (#1897)

* [MWPW-139990] PEP prompt

* MWPW-142617: Microsoft Edge & Chrome Win - progress bar not completely loaded (#1882)

* hotfix

* refactor: changed loader animation logic

* update

* revert update

* more gpu acceleration for pep loader

* hotfix

* hotfix

* [MWPW-141023] PEP authoring (#1889)

* hotfix: blue outline on close button when focused

* hotfix

---------

Co-authored-by: Rares Munteanu <overmyheadandbody@gmail.com>

* MWPW-141020: [Project PEP] Implement Analytics Enablement (#1951)

* pep analytics

* hotfix

* hotfix

* hotfix

* removed capitalization from analytics label

* [MWPW-141050] Fetch profile for PEP

* [MWPW-141025] Integrate XLG with PEP

* [MWPW-142625] PEP relative to App Switcher

* MWPW-144108: Project PEP unit tests (#2136)

* unit tests for pep

* fixes for gnav unit tests

* optimizing pep unit tests

* MWPW-146582: PEP fixes (#2144)

* added aria-label attribute to pep close button

* force load imslib.min.js

* revert force load imslib.min.js

* changed aria label for close button

* pep final touches

* [MWPW-147145] Allow SVG in PEP Prompt; change redirect method

---------

Co-authored-by: Robert Bogos <146744221+robert-bogos@users.noreply.github.com>
Co-authored-by: Robert Bogos <robert.adobe.github@gmail.com>
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.

7 participants