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

Add information on how to verify if a user is part of 1% experimental group #543

Merged
merged 17 commits into from
Apr 8, 2024

Conversation

mohdsayed
Copy link
Collaborator

@mohdsayed mohdsayed commented Mar 4, 2024

Description

Add information in the "Facilitated Testing" page on how to verify if a user is part of a 1% experimental group.

Relevant Technical Choices

  • If navigator.cookieDeprecationLabel API is not available, the browser is not part of a group as mentioned in Accessing the cookieDeprecationLabel JavaScript API. When tested, this API is not available even when user is part of the experiment group, therefore we decided to only showing a message.

Testing Instructions

  • Open PSAT panel and visit "Facilitated Testing" section and look at the "Membership In Experiment Group"
  • Refer to the screenshots section below for the message

Additional Information:

This article also suggests the following

For browsers in the 1% group, users will get a new chrome://settings/trackingProtection page instead of chrome://settings/cookies:

Screenshot/Screencast

image

Checklist

  • I have thoroughly tested this code to the best of my abilities.
  • I have reviewed the code myself before requesting a review.
    This code is covered by unit tests to verify that it works as intended. NA
    The QA of this PR is done by a member of the QA team (to be checked by QA). NA

Fixes #504

@mohdsayed mohdsayed self-assigned this Mar 8, 2024
@mohdsayed mohdsayed added the feature Feature/capability of the tool label Mar 8, 2024
@mohdsayed mohdsayed added this to the v0.6.0 milestone Mar 8, 2024
@mohdsayed mohdsayed modified the milestones: v0.6.0, v0.7.0 Mar 12, 2024
@mohdsayed
Copy link
Collaborator Author

Observation:

  • navigator.cookieDeprecationLabel is not available even when browser is part of 1%, so we may have two possible options.
    • Ask the user to visit a webpage with third-party cookies and parse the console error to find out if the cookies are actully getting blocked.
      • Without Membership (and with third-party enabled) from settings we get the following console error - “Third-party cookie will be blocked. Learn more in the Issues tab.”
      • When third-part cookies are blocked from settings (When not part of the membership) - No errors are shown.
      • When part of the membership - “Blocked third-party cookie. Learn more in the Issues tab”.
    • Just provide the information shared in this article
      • “For browsers in the 1% group, users will get a new chrome://settings/trackingProtection page instead of chrome://settings/cookies:”

@mohdsayed mohdsayed changed the title Feature: Detection of Chrome experiment membership Feature: Add information on how to verify if a user is part of a 1% experimental group Apr 8, 2024
@mohdsayed mohdsayed changed the title Feature: Add information on how to verify if a user is part of a 1% experimental group Add information on how to verify if a user is part of a 1% experimental group Apr 8, 2024
@mohdsayed mohdsayed changed the title Add information on how to verify if a user is part of a 1% experimental group Add information on how to verify if a user is part of 1% experimental group Apr 8, 2024
@mohdsayed mohdsayed marked this pull request as ready for review April 8, 2024 08:25
@mohdsayed mohdsayed requested a review from mayan-000 April 8, 2024 08:25
@mohdsayed mohdsayed merged commit d9283c2 into develop Apr 8, 2024
4 checks passed
@mohdsayed mohdsayed deleted the feat/show-experiment-membership branch April 8, 2024 13:51
@mohdsayed mohdsayed mentioned this pull request Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature/capability of the tool
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants