1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 - messaging-evergreen-messages.fml.yaml
8 - path: ../../android-components/components/service/nimbus/messaging.fml.yaml
14 # Using attributes built into the Nimbus SDK
15 USER_RECENTLY_INSTALLED: days_since_install < 7
16 USER_RECENTLY_UPDATED: days_since_update < 7 && days_since_install != days_since_update
17 USER_TIER_ONE_COUNTRY: ('US' in locale || 'GB' in locale || 'CA' in locale || 'DE' in locale || 'FR' in locale)
18 USER_EN_SPEAKER: "'en' in locale"
19 USER_ES_SPEAKER: "'es' in locale"
20 USER_DE_SPEAKER: "'de' in locale"
21 USER_FR_SPEAKER: "'fr' in locale"
22 DEVICE_ANDROID: os == 'Android'
23 DEVICE_IOS: os == 'iOS'
26 DAY_1_AFTER_INSTALL: days_since_install == 1
27 DAY_2_AFTER_INSTALL: days_since_install == 2
28 DAY_3_AFTER_INSTALL: days_since_install == 3
29 DAY_4_AFTER_INSTALL: days_since_install == 4
30 DAY_5_AFTER_INSTALL: days_since_install == 5
31 MORE_THAN_24H_SINCE_INSTALLED_OR_UPDATED: days_since_update >= 1
33 # Using custom attributes for the browser
34 I_AM_DEFAULT_BROWSER: "is_default_browser"
35 I_AM_NOT_DEFAULT_BROWSER: "is_default_browser == false"
37 FUNNEL_PAID: "adjust_campaign != ''"
38 FUNNEL_ORGANIC: "adjust_campaign == ''"
40 # Using Glean events, specific to the browser
41 INACTIVE_1_DAY: "'app_launched'|eventLastSeen('Hours') >= 24"
42 INACTIVE_2_DAYS: "'app_launched'|eventLastSeen('Days', 0) >= 2"
43 INACTIVE_3_DAYS: "'app_launched'|eventLastSeen('Days', 0) >= 3"
44 INACTIVE_4_DAYS: "'app_launched'|eventLastSeen('Days', 0) >= 4"
45 INACTIVE_5_DAYS: "'app_launched'|eventLastSeen('Days', 0) >= 5"
47 # Behavioral Targeting Events
48 # See https://experimenter.info/mobile-behavioral-targeting for more info
49 RECENTLY_PRINTED: "'print_tapped'|eventLastSeen('Hours') <= 24"
50 SECOND_HOMEPAGE_VIEW: "'home_screen_displayed'|eventSum('Years', 4, 0) >= 2"
52 # Has the user signed in the last 4 years
53 FXA_SIGNED_IN: "'sync_auth.sign_in'|eventLastSeen('Years', 0) <= 4"
54 FXA_NOT_SIGNED_IN: "'sync_auth.sign_in'|eventLastSeen('Years', 0) > 4"
56 # https://mozilla-hub.atlassian.net/wiki/spaces/FJT/pages/11469471/Core+Active
57 USER_INFREQUENT: "'app_launched'|eventCountNonZero('Days', 28) >= 1 && 'app_launched'|eventCountNonZero('Days', 28) < 7"
58 USER_CASUAL: "'app_launched'|eventCountNonZero('Days', 28) >= 7 && 'app_launched'|eventCountNonZero('Days', 28) < 14"
59 USER_REGULAR: "'app_launched'|eventCountNonZero('Days', 28) >= 14 && 'app_launched'|eventCountNonZero('Days', 28) < 21"
60 USER_CORE_ACTIVE: "'app_launched'|eventCountNonZero('Days', 28) >= 21"
62 LAUNCHED_ONCE_THIS_WEEK: "'app_launched'|eventSum('Days', 7) == 1"
65 ENABLE_PRIVATE_BROWSING: ://enable_private_browsing
66 INSTALL_SEARCH_WIDGET: ://install_search_widget
67 MAKE_DEFAULT_BROWSER: ://make_default_browser
68 VIEW_BOOKMARKS: ://urls_bookmarks
69 VIEW_COLLECTIONS: ://home_collections
70 VIEW_HISTORY: ://urls_history
71 VIEW_HOMESCREEN: ://home
72 OPEN_SETTINGS_ACCESSIBILITY: ://settings_accessibility
73 OPEN_SETTINGS_ADDON_MANAGER: ://settings_addon_manager
74 OPEN_SETTINGS_DELETE_BROWSING_DATA: ://settings_delete_browsing_data
75 OPEN_SETTINGS_LOGINS: ://settings_logins
76 OPEN_SETTINGS_NOTIFICATIONS: ://settings_notifications
77 OPEN_SETTINGS_PRIVACY: ://settings_privacy
78 OPEN_SETTINGS_SEARCH_ENGINE: ://settings_search_engine
79 OPEN_SETTINGS_TRACKING_PROTECTION: ://settings_tracking_protection
80 OPEN_SETTINGS_WALLPAPERS: ://settings_wallpapers
81 OPEN_SETTINGS: ://settings
82 TURN_ON_SYNC: ://turn_on_sync
116 max-display-count: 100
121 refresh-interval: 120 # minutes (2 hours)