diff --git a/DuckDuckGo/TabSwitcherOpenDailyPixel.swift b/DuckDuckGo/TabSwitcherOpenDailyPixel.swift index 98bb816864..8b6941ceb2 100644 --- a/DuckDuckGo/TabSwitcherOpenDailyPixel.swift +++ b/DuckDuckGo/TabSwitcherOpenDailyPixel.swift @@ -55,11 +55,9 @@ struct TabSwitcherOpenDailyPixel { let count = tabs.count { $0.link == nil } switch count { - case 0: return "0" - case 1...5: return "1-5" - case 6...10: return "6-10" - case 11...50: return "11-50" - default: return "51+" + case 0...1: return "0-1" + case 2...10: return "2-10" + default: return "11+" } } diff --git a/DuckDuckGoTests/TabSwitcherDailyPixelTests.swift b/DuckDuckGoTests/TabSwitcherDailyPixelTests.swift index 2c3c5bf8f2..7cc16a6074 100644 --- a/DuckDuckGoTests/TabSwitcherDailyPixelTests.swift +++ b/DuckDuckGoTests/TabSwitcherDailyPixelTests.swift @@ -39,7 +39,7 @@ final class TabSwitcherDailyPixelTests: XCTestCase { let parameters = pixel.parameters(with: tabs) XCTAssertEqual(parameters[ParameterName.tabCount], "2-5") - XCTAssertEqual(parameters[ParameterName.newTabCount], "1-5") + XCTAssertEqual(parameters[ParameterName.newTabCount], "2-10") } func testBucketsAggregation() { @@ -71,11 +71,9 @@ final class TabSwitcherDailyPixelTests: XCTestCase { func testNewTabBucketsAggregation() { let bucketValues = [ - 0...0: "0", - 1...5: "1-5", - 6...10: "6-10", - 11...50: "11-50", - 51...60: "51+"] + 0...1: "0-1", + 2...10: "2-10", + 11...20: "11+"] for bucket in bucketValues { for value in bucket.key {