Closed Bug 1437699 Opened 6 years ago Closed 6 years ago

Expand Leanplum in other countries/locales for our Android users

Categories

(Firefox for Android Graveyard :: Settings and Preferences, defect, P1)

Other
Android
defect

Tracking

(firefox60 wontfix)

RESOLVED FIXED
Tracking Status
firefox60 --- wontfix

People

(Reporter: jcollings, Assigned: petru)

References

Details

(Whiteboard: [Leanplum] [61])

Attachments

(1 file)

Expand LP to other countries at 100% (en_IN, en_ID, fr_FR, it_IT, id_ID, pt_BR, es_US, es_ES, es_MX, pl_PL and ru_RU)
Jean, what release would you *like* to have this in?
Flags: needinfo?(jcollings)
Does this change need to ride the trains? 

After Fx59 works for me if possible.
Flags: needinfo?(jcollings)
Good question - I am not sure :) . I'll have to check and get back to you.
Flags: needinfo?(sdaswani)
Whiteboard: [Leanplum]
Flags: needinfo?(sdaswani)
Whiteboard: [Leanplum] → [Leanplum] [60]
Product team would like this fixed in 60, tracked as blocking to ensure it's closely monitored.
Assignee: nobody → petru.lingurar
Flags: needinfo?(sdaswani)
I think you can find VPN info here (requires LDAP): https://mana.mozilla.org/wiki/display/SD/VPN
Flags: needinfo?(sdaswani)
Currently on Fennec, LeanPlum is offered to English/Chinese/German global.

To allow targeting specific locales, language-country pairs, we need to do a slight modification in code.
(In reply to Petru-Mugurel Lingurar[:petru] from comment #7)
> Currently on Fennec, LeanPlum is offered to English/Chinese/German global.
> 
> To allow targeting specific locales, language-country pairs, we need to do a
> slight modification in code.

That is what we expected Petru. Does switchboard need to be involved too?
(In reply to :sdaswani from comment #8)
> (In reply to Petru-Mugurel Lingurar[:petru] from comment #7)
> > Currently on Fennec, LeanPlum is offered to English/Chinese/German global.
> > 
> > To allow targeting specific locales, language-country pairs, we need to do a
> > slight modification in code.
> 
> That is what we expected Petru. Does switchboard need to be involved too?

On switchboard we do the updates, in the app will have to treat the updated cases.
To note: Because of current in-app implementation - https://dxr.mozilla.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/switchboard/SwitchBoard.java#219 LeanPlum (and other experiments) can only be made available to a specific language/country/region. Not to a specific locale like "es_US"

In the current implementation (https://firefox.settings.services.mozilla.com/v1/buckets/fennec/collections/experiments/records) LeanPlum is only available to 50% of the users which have en global/zh global/de global on their devices.

As such, for the next implementations we could add in SwitchBoard a new property to check, "locale" which would allow checking [language code - country code] inside the apps and thus a deeper targeting of the devices. This would make it possible to only allow LeanPlum if the device has [Spanish-US] set as locale on the device, as opposed to es global.

But because this will only affect future versions of the app, either
- all previous versions of Fennec will remain to offer LeanPlum to the current global languages (en, ch, de) or
- we will have to update SwitchBoard to allow LeanPlum on [en, fr, it, id, pt, es, pl and ru] global.

So, if we are from now on to only offer LeanPlum for [language-country] locales we will end up with different LeanPlum availabilities depending on the Fennec version used.
Flags: needinfo?(jcollings)
Which would allow for me to say:

Option 1: Language is English, no country selection (so everyone in the world with language in English will get a campaign)
Option 2: Language is English, country is United States 
Option 3: Language is French, country is France 
Option 4: Language is Italian, country is Italy
Flags: needinfo?(jcollings)
Petru thanks for the info and the explanation on how to better target locales. Given I'd like this to land in 60, let's file another bug to add your locale targeting, and use the current system per Jean's options to close this bug.

I think that means making https://firefox.settings.services.mozilla.com/v1/buckets/fennec/collections/experiments/records 100, and then expanding the lang value to include all the languages Jean wants. That said, I don't see where to target specific countries? Is the 'regions' field also used for that?
Flags: needinfo?(petru.lingurar)
After discussing with :sdaswani, :sebastian helped with pushing the changes needed for this ticket and also for bug 1411066 on SwitchBoard.

LeanPlum experiment is now available for all users (100%) which have set the language used on their device to be "eng|zho|deu|fra|ita|ind|por|spa|pol|rus" (global)

I will work on a solution that will allow targetting specific [language-country] locales in the future versions.

I hope this is ok Kat.
Flags: needinfo?(petru.lingurar) → needinfo?(kplam)
Petru, thanks for flagging Kat on this. I would hold off on doing any implementation work until we hear from Kat / Marketing on whether this is still needed, especially now that we've rolled out to so many more countries. I will set up a meeting to determine this soon.
Mike, I've tested the recently pushed patch with this newly added Switchboard configuration option
> "locale":"en_[A-Z]{2}|zh_TW|de_DE|fr_FR|it_IT|id_ID|pt_BR|es_US|es_ES|es_MX|pl_PL|ru_RU",
(should allow targeting specific locales [language_country] pairs as per this ticket and as per bug 1411066)

and I think this is what we needed to allow for a more precise targeting of the users (as the tickets requested) while still maintaining the current behavior for the users of older apps. (for them the feature will be available for that languages used globally).
It sounds like this is still in flux, and it's too late for any changes in 60, so clearing tracking.
Comment on attachment 8967709 [details]
Bug 1437699 - Expand Leanplum in other countries/locales for our Android users;

Clearing review request: according to comment 14 we should wait on Kat to see if this is still needed. Please re-add my review request at this time if it's needed.
Attachment #8967709 - Flags: review?(michael.l.comella)
Whiteboard: [Leanplum] [60] → [Leanplum] [61]
Flags: needinfo?(kplam) → needinfo?(cpark)
We are good for the moment to have via language used on their device to be eng|zho|deu|fra|ita|ind|por|spa|pol|rus (global)

We can create a separate bug for the solution that will allow[language-country]locale targeting for the future.
Flags: needinfo?(cpark)
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: