Background
For users in the treatment group who already have an account but are logged-out, if they click the bookmark and view the dialog CTA, they may click "log in" and log into their account. Given this is a signal they want to use the ReadingLists feature, we need to opt them into the beta feature.
Requirements
Technical requirements
There are 2 things we need to achieve:
- We need to target users in the treatment group who have an account. This means they will have clicked "log in" from the CTA dialog in the experimental UI.
- We need to opt those users into the "Saved pages" beta feature on login.
Some ideas:
@Jdlrobson suggested the onLocalUserCreated hook to set a preference for a new user, like so:
public function onLocalUserCreated( $user, $isAutoCreated ) {
$campaign = RequestContext::getMain()->getRequest()->getText( 'campaign' );
if ( str_starts_with( $campaign, '..' ) ) {
$donorCampaign = explode( '-
$this->userOptionsManager->setOption(
$user,
'readlistin',
0
);
}We could use the onUserLoginComplete hook in a similar fashion. This still leaves the issue of targeting the right users, though.
We could also consider doing something similar to what we will do to track account creations - see T422177, which details how the Growth team has approached this.
@Jdlrobson also mentioned that there's a way to tell that an account was created via the watchstar CTA - maybe we could use that for inspiration.
Acceptance criteria
- Determine how we can opt existing accounts who click the "log in" CTA from the bookmark button into the ReadingLists beta feature
- Document the approach here or in a proof of concept
This task was created by Version 1.0.0 of the Reader Experience team task template using phabulous.