Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 42 additions & 12 deletions PixelDefinitions/pixels/definitions/duck_chat.json5
Original file line number Diff line number Diff line change
Expand Up @@ -230,28 +230,28 @@
"owners": ["malmstein"],
"triggers": ["other"],
"suffixes": ["form_factor"],
"parameters": ["appVersion"]
"parameters": ["appVersion", "duckAiPromptPageType", "duckAiEntrySource"]
},
"m_aichat_contextual_prompt_submitted_with_context_native_daily": {
"description": "(Daily Pixel) The user has submitted a prompt to Contextual Duck.ai with the page context attached",
"owners": ["malmstein"],
"triggers": ["other"],
"suffixes": ["form_factor"],
"parameters": ["appVersion"]
"parameters": ["appVersion", "duckAiPromptPageType", "duckAiEntrySource"]
},
"m_aichat_contextual_prompt_submitted_without_context_native_count": {
"description": "The user has submitted a prompt to Contextual Duck.ai without the page context attached",
"owners": ["malmstein"],
"triggers": ["other"],
"suffixes": ["form_factor"],
"parameters": ["appVersion"]
"parameters": ["appVersion", "duckAiPromptPageType", "duckAiEntrySource"]
},
"m_aichat_contextual_prompt_submitted_without_context_native_daily": {
"description": "(Daily Pixel) The user has submitted a prompt to Contextual Duck.ai without the page context attached",
"owners": ["malmstein"],
"triggers": ["other"],
"suffixes": ["form_factor"],
"parameters": ["appVersion"]
"parameters": ["appVersion", "duckAiPromptPageType", "duckAiEntrySource"]
},
"m_aichat_contextual_page_context_collection_empty": {
"description": "The page context collected via content scripts is not valid / is empty",
Expand Down Expand Up @@ -439,6 +439,24 @@
}
]
},
"m_aichat_entry_point": {
"description": "Fires when an active user action enters Duck.ai, with the initiating surface and navigation context.",
"owners": ["YoussefKeyrouz"],
"triggers": ["other"],
"suffixes": ["first_daily_count", "form_factor"],
"parameters": [
"appVersion",
"duckAiEntrySource",
{ "key": "duck_ai_enabled", "type": "boolean", "description": "Whether Duck.ai is enabled by feature and user settings." },
{
"key": "input_screen_enabled",
"type": "boolean",
"description": "Whether the Search and Duck.ai input capability is enabled."
},
{ "key": "opens_new_tab", "type": "boolean", "description": "Whether this entry opens a new browser tab." },
{ "key": "has_prompt", "type": "boolean", "description": "Whether a non-blank prompt is automatically submitted on entry." }
]
},
"m_aichat_duck_ai_direct_navigation_count": {
"description": "User navigated directly to the Duck.ai URL by typing it in the omnibar",
"owners": ["malmstein"],
Expand All @@ -448,9 +466,13 @@
"appVersion",
{
"key": "duck_ai_enabled",
"type": "string",
"description": "Whether the Duck.ai global setting is enabled",
"enum": ["true", "false"]
"type": "boolean",
"description": "Whether the Duck.ai global setting is enabled"
},
{
"key": "input_screen_enabled",
"type": "boolean",
"description": "Whether the Search and Duck.ai input capability is enabled."
}
]
},
Expand All @@ -463,9 +485,13 @@
"appVersion",
{
"key": "duck_ai_enabled",
"type": "string",
"description": "Whether the Duck.ai global setting is enabled",
"enum": ["true", "false"]
"type": "boolean",
"description": "Whether the Duck.ai global setting is enabled"
},
{
"key": "input_screen_enabled",
"type": "boolean",
"description": "Whether the Search and Duck.ai input capability is enabled."
}
]
},
Expand Down Expand Up @@ -1234,7 +1260,9 @@
},
{ "key": "has_image_attachment", "type": "boolean", "description": "Whether the prompt included an image attachment" },
{ "key": "has_file_attachment", "type": "boolean", "description": "Whether the prompt included a file attachment" },
{ "key": "has_text", "type": "boolean", "description": "Whether the prompt included text" }
{ "key": "has_text", "type": "boolean", "description": "Whether the prompt included text" },
"duckAiPromptPageType",
"duckAiEntrySource"
]
},
"m_aichat_unified_input_prompt_submitted_daily": {
Expand Down Expand Up @@ -1266,7 +1294,9 @@
},
{ "key": "has_image_attachment", "type": "boolean", "description": "Whether the prompt included an image attachment" },
{ "key": "has_file_attachment", "type": "boolean", "description": "Whether the prompt included a file attachment" },
{ "key": "has_text", "type": "boolean", "description": "Whether the prompt included text" }
{ "key": "has_text", "type": "boolean", "description": "Whether the prompt included text" },
"duckAiPromptPageType",
"duckAiEntrySource"
]
},
"m_aichat_unified_input_sent_prompt_in_chat_count": {
Expand Down
35 changes: 35 additions & 0 deletions PixelDefinitions/pixels/params_dictionary.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,41 @@
"none"
]
},
"duckAiPromptPageType": {
"key": "page_type",
"type": "string",
"description": "What the user was looking at when the prompt was submitted.",
"enum": ["ntp", "serp", "website", "duck_ai", "contextual"]
},
"duckAiEntrySource": {
"key": "source",
"type": "string",
"description": "The Duck.ai entry point: the surface that initiated the entry or prompt submission. Omitted when unknown.",
"enum": [
"address_bar_prompt",
"address_bar_icon",
"address_bar_shortcut_chip",
"address_bar_editing_state",
"suggestion_ask_ai",
"browsing_menu_ntp",
"browsing_menu_webpage",
"tab_switcher",
"chat_history_new_chat",
"chat_history_open_chat",
"voice",
"onboarding",
"direct_url",
"serp",
"icon_shortcut",
"contextual_chat",
"widget_quick_actions",
"widget_favorite",
"system_search",
"digital_assistant",
"deep_link_other",
"paid_settings"
]
},
"osVersion": {
"key": "os_version",
"type": "integer",
Expand Down
2 changes: 1 addition & 1 deletion app/lint-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@
errorLine2="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/test/java/com/duckduckgo/app/browser/nativeinput/RealNativeInputManagerTest.kt"
line="45"
line="46"
column="1"/>
</issue>

Expand Down
Loading
Loading