Skip to content

Commit bd789f7

Browse files
committed
Add pixel definitions for contingency and browser menu
1 parent abec109 commit bd789f7

2 files changed

Lines changed: 96 additions & 0 deletions

File tree

PixelDefinitions/pixels/definitions/ad_blocking.json5

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,89 @@
132132
"triggers": ["exception"],
133133
"suffixes": ["form_factor"],
134134
"parameters": ["appVersion"]
135+
},
136+
"adBlocking_menu_enable_tapped_daily": {
137+
"description": "(Daily) User tapped the 'Enable YouTube Ad Blocking' row in the browsing menu to re-enable ad blocking from a previously-disabled state.",
138+
"owners": ["CrisBarreiro"],
139+
"triggers": ["other"],
140+
"suffixes": ["form_factor"],
141+
"parameters": ["appVersion"]
142+
},
143+
"adBlocking_menu_enable_tapped_count": {
144+
"description": "User tapped the 'Enable YouTube Ad Blocking' row in the browsing menu to re-enable ad blocking from a previously-disabled state.",
145+
"owners": ["CrisBarreiro"],
146+
"triggers": ["other"],
147+
"suffixes": ["form_factor"],
148+
"parameters": ["appVersion"]
149+
},
150+
"adBlocking_menu_disable_tapped_daily": {
151+
"description": "(Daily) User tapped the 'Disable YouTube Ad Block' row in the browsing menu, which opens the disable mode picker.",
152+
"owners": ["CrisBarreiro"],
153+
"triggers": ["other"],
154+
"suffixes": ["form_factor"],
155+
"parameters": ["appVersion"]
156+
},
157+
"adBlocking_menu_disable_tapped_count": {
158+
"description": "User tapped the 'Disable YouTube Ad Block' row in the browsing menu, which opens the disable mode picker.",
159+
"owners": ["CrisBarreiro"],
160+
"triggers": ["other"],
161+
"suffixes": ["form_factor"],
162+
"parameters": ["appVersion"]
163+
},
164+
"adBlocking_picker_always_on_daily": {
165+
"description": "(Daily) User selected 'Always On' in the YouTube Ad Block disable picker.",
166+
"owners": ["CrisBarreiro"],
167+
"triggers": ["other"],
168+
"suffixes": ["form_factor"],
169+
"parameters": ["appVersion"]
170+
},
171+
"adBlocking_picker_always_on_count": {
172+
"description": "User selected 'Always On' in the YouTube Ad Block disable picker.",
173+
"owners": ["CrisBarreiro"],
174+
"triggers": ["other"],
175+
"suffixes": ["form_factor"],
176+
"parameters": ["appVersion"]
177+
},
178+
"adBlocking_picker_always_off_daily": {
179+
"description": "(Daily) User selected 'Always Off' in the YouTube Ad Block disable picker, persistently disabling ad blocking.",
180+
"owners": ["CrisBarreiro"],
181+
"triggers": ["other"],
182+
"suffixes": ["form_factor"],
183+
"parameters": ["appVersion"]
184+
},
185+
"adBlocking_picker_always_off_count": {
186+
"description": "User selected 'Always Off' in the YouTube Ad Block disable picker, persistently disabling ad blocking.",
187+
"owners": ["CrisBarreiro"],
188+
"triggers": ["other"],
189+
"suffixes": ["form_factor"],
190+
"parameters": ["appVersion"]
191+
},
192+
"adBlocking_picker_disable_until_relaunch_daily": {
193+
"description": "(Daily) User selected 'Disable Until Relaunch' in the YouTube Ad Block disable picker. The selection suppresses ad blocking for the current app session only and is not persisted to storage.",
194+
"owners": ["CrisBarreiro"],
195+
"triggers": ["other"],
196+
"suffixes": ["form_factor"],
197+
"parameters": ["appVersion"]
198+
},
199+
"adBlocking_picker_disable_until_relaunch_count": {
200+
"description": "User selected 'Disable Until Relaunch' in the YouTube Ad Block disable picker. The selection suppresses ad blocking for the current app session only and is not persisted to storage.",
201+
"owners": ["CrisBarreiro"],
202+
"triggers": ["other"],
203+
"suffixes": ["form_factor"],
204+
"parameters": ["appVersion"]
205+
},
206+
"adBlocking_breakage_report_entered_daily": {
207+
"description": "(Daily) User tapped 'Report Broken Site' on the breakage report prompt shown after disabling YouTube ad blocking from the browsing menu picker.",
208+
"owners": ["CrisBarreiro"],
209+
"triggers": ["other"],
210+
"suffixes": ["form_factor"],
211+
"parameters": ["appVersion"]
212+
},
213+
"adBlocking_breakage_report_entered_count": {
214+
"description": "User tapped 'Report Broken Site' on the breakage report prompt shown after disabling YouTube ad blocking from the browsing menu picker.",
215+
"owners": ["CrisBarreiro"],
216+
"triggers": ["other"],
217+
"suffixes": ["form_factor"],
218+
"parameters": ["appVersion"]
135219
}
136220
}

ad-blocking/ad-blocking-impl/src/main/java/com/duckduckgo/adblocking/impl/AdBlockingPixelNames.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,16 @@ enum class AdBlockingPixelNames(override val pixelName: String) : Pixel.PixelNam
4040
AD_BLOCKING_SCRIPTLETS_INSTALLED_COUNT("adBlocking_scriptlets_installed_count"),
4141
AD_BLOCKING_SCRIPTLETS_INSTALL_ERROR_DAILY("adBlocking_scriptlets_install_error_daily"),
4242
AD_BLOCKING_SCRIPTLETS_INSTALL_ERROR_COUNT("adBlocking_scriptlets_install_error_count"),
43+
AD_BLOCKING_MENU_ENABLE_TAPPED_DAILY("adBlocking_menu_enable_tapped_daily"),
44+
AD_BLOCKING_MENU_ENABLE_TAPPED_COUNT("adBlocking_menu_enable_tapped_count"),
45+
AD_BLOCKING_MENU_DISABLE_TAPPED_DAILY("adBlocking_menu_disable_tapped_daily"),
46+
AD_BLOCKING_MENU_DISABLE_TAPPED_COUNT("adBlocking_menu_disable_tapped_count"),
47+
AD_BLOCKING_PICKER_ALWAYS_ON_DAILY("adBlocking_picker_always_on_daily"),
48+
AD_BLOCKING_PICKER_ALWAYS_ON_COUNT("adBlocking_picker_always_on_count"),
49+
AD_BLOCKING_PICKER_ALWAYS_OFF_DAILY("adBlocking_picker_always_off_daily"),
50+
AD_BLOCKING_PICKER_ALWAYS_OFF_COUNT("adBlocking_picker_always_off_count"),
51+
AD_BLOCKING_PICKER_DISABLE_UNTIL_RELAUNCH_DAILY("adBlocking_picker_disable_until_relaunch_daily"),
52+
AD_BLOCKING_PICKER_DISABLE_UNTIL_RELAUNCH_COUNT("adBlocking_picker_disable_until_relaunch_count"),
53+
AD_BLOCKING_BREAKAGE_REPORT_ENTERED_DAILY("adBlocking_breakage_report_entered_daily"),
54+
AD_BLOCKING_BREAKAGE_REPORT_ENTERED_COUNT("adBlocking_breakage_report_entered_count"),
4355
}

0 commit comments

Comments
 (0)