Closed Bug 1724108 (vpm-promo-login-press) Opened 3 years ago Closed 3 years ago

target vpn promo experiment messages ONLY to those who have pressed login button

Categories

(Firefox :: Messaging System, enhancement, P1)

enhancement

Tracking

()

RESOLVED WONTFIX
Iteration:
93.1 - Aug 9 - Aug 22
Tracking Status
firefox92 --- fixed

People

(Reporter: dmosedale, Assigned: dmosedale)

References

(Blocks 1 open bug)

Details

Attachments

(3 obsolete files)

User story: as someone who has connected to the internet through a captive portal, I should be shown a VPN promo only when I have pressed the "Login button" in the captive portal infobar, so that it's likely that I have a sufficient mental context around why the VPN promo has been shown.

Acceptance criteria:

  • VPN promo is not shown when the login button has not been pressed, and the captive-portal-login-success has been sent.
  • VPN promo is shown when the login button has been pressed and the captive-portal-login-success notification has been sent.
  • (Nice to have, but not required for an experiment, could totally be a spinoff bug): If the captive-portal-login-success state is received, and it has been more than N minutes since the login button was pressed, the VPN promo is not shown, since we don't know if they're really associated.

In bug 1721178, code was landed to target experimental VPN promo messages to users when captive-portal-login-success observer notification was received.

If a user has logged into a captive portal through the OS user interface, or another browser, and not through the Firefox UI, the captive portal detection code can sometimes (but not always) detect when their Internet connection is going through a captive portal. In that case, there is a some chance that a captive-portal-login-success notification will be sent despite no captive portal UI being shown. This means that the user will have less or little mental context around why the VPN promo is being shown at that moment, and may have a hard time making sense of it.

As a way to avoid this, we can make that promo trigger only when a captive-portal-login-success is received after the "login" button has been pressed.

This will be useful regardless of what form the promo takes, infobar, modal, or whatever.

Added these acceptance criteria to comment 0:

  • VPN promo is not shown when the login button has not been pressed, and the captive-portal-login-success has been sent.
  • VPN promo is shown when the login button has been pressed and the captive-portal-login-success notification has been sent.
  • (Nice to have, but not required for an experiment. Could totally be a spinoff bug.): If the captive-portal-login-success state is received, and it has been more than N minutes since the login button was pressed, the VPN promo is not shown, since we don't know if they're really associated.
Summary: target vpm promo experiment messages ONLY to those who have pressed login button → target vpn promo experiment messages ONLY to those who have pressed login button
Assignee: nobody → dmosedale

There's still some more work to do here, but I'd love any comments on the WIP patches...

Flags: needinfo?(valentin.gosu)

At a high level it all looks good to me, but a Firefox peer might be able to provide more on-point feedback with regards to the implementation.

Flags: needinfo?(valentin.gosu)
Attachment #9235002 - Attachment description: WIP: Bug 1724108 - Don't send notification if button not pressed → WIP: Bug 1724108 - Don't send captive-portal-login-success-after-button-press in various cases
Iteration: 92.2 - Jul 26 - Aug 8 → 93.1 - Aug 9 - Aug 22
Attachment #9235002 - Attachment description: WIP: Bug 1724108 - Don't send captive-portal-login-success-after-button-press in various cases → WIP: Bug 1724108 - Don't send captive-portal-login-success-after-button-pressed in some cases
Attachment #9235323 - Attachment description: WIP: Bug 1724108 - switched browser_trigger_listeners to new vpn promot event → WIP: Bug 1724108 - switched browser_trigger_listeners to new vpn promo event
Attachment #9235001 - Attachment description: WIP: Bug 1724108 - Only show captive portal VPN promo after button press → Bug 1724108 - Only show captive portal VPN promo after button press, r?valentin!
Attachment #9235002 - Attachment description: WIP: Bug 1724108 - Don't send captive-portal-login-success-after-button-pressed in some cases → Bug 1724108 - Don't send captive-portal-login-success-after-button-pressed in some cases, r?valentin!
Attachment #9235323 - Attachment description: WIP: Bug 1724108 - switched browser_trigger_listeners to new vpn promo event → Bug 1724108 - switched browser_trigger_listeners to new vpn promo event, r?andreio!
Attachment #9235002 - Attachment description: Bug 1724108 - Don't send captive-portal-login-success-after-button-pressed in some cases, r?valentin! → Bug 1724108 - Don't send captive-portal-login-success-after-button-pressed in some cases, r=gijs
Pushed by dmosedale@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5e57386eae33
Only show captive portal VPN promo after button press, r=valentin
Pushed by dmosedale@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/91aa3dd65624
Don't send captive-portal-login-success-after-button-pressed in some cases, r=Gijs
Pushed by dmosedale@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0bdbea37f84f
switched browser_trigger_listeners to new vpn promo event, r=andreio

Comment on attachment 9235001 [details]
Bug 1724108 - Only show captive portal VPN promo after button press, r?valentin!

Beta/Release Uplift Approval Request

  • User impact if declined: User Journey team unable to validate metrics and telemetry in experiment on 92 beta & release.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): UI changes triggered by experiment enrollment; low risk to roll back.
  • String changes made/needed:
Attachment #9235001 - Flags: approval-mozilla-beta?
Attachment #9235002 - Flags: approval-mozilla-beta?
Attachment #9235323 - Flags: approval-mozilla-beta?

In the future, please try to set the dependencies in Phabricator so all the related commits land together in one push.

Comment on attachment 9235001 [details]
Bug 1724108 - Only show captive portal VPN promo after button press, r?valentin!

Approved for 92.0b4.

Attachment #9235001 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9235002 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9235323 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Will do; thanks!

Status: RESOLVED → REOPENED
Flags: needinfo?(dmosedale)
Resolution: FIXED → ---
Target Milestone: 93 Branch → ---

Thank you! This was backed out because after a discussion with product, we decided to change direction and use a slightly different strategy.

Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Flags: needinfo?(dmosedale)
Resolution: --- → WONTFIX
Attachment #9235323 - Attachment is obsolete: true
Attachment #9235002 - Attachment is obsolete: true
Attachment #9235001 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: