Skip to content

Commit

Permalink
Add new parameter to duck player pixel (#3026)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/1204167627774280/1207766311130546/f

**Description**:
Add new parameter to duck player pixel
  • Loading branch information
Bunn authored Jul 26, 2024
1 parent 6e5e22b commit 44399ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DuckDuckGo/Tab/TabExtensions/DuckPlayerTabExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,13 @@ extension DuckPlayerTabExtension: NavigationResponder {
if navigation.url.isDuckPlayer {
let setting = duckPlayer.mode == .enabled ? "always" : "default"
let newTabSettings = preferences.duckPlayerOpenInNewTab ? "true" : "false"
let autoplay = preferences.duckPlayerAutoplay ? "true" : "false"

PixelKit.fire(GeneralPixel.duckPlayerDailyUniqueView,
frequency: .legacyDaily,
withAdditionalParameters: ["setting": setting,
"newtab": newTabSettings])
"newtab": newTabSettings,
"autoplay": autoplay])
}
}

Expand Down

0 comments on commit 44399ac

Please sign in to comment.