diff --git a/Core/PixelEvent.swift b/Core/PixelEvent.swift index 4ba9c88b32..bd35b54b15 100644 --- a/Core/PixelEvent.swift +++ b/Core/PixelEvent.swift @@ -827,6 +827,9 @@ extension Pixel { case duckplayerExperimentDailySearch case duckplayerExperimentWeeklySearch case duckplayerExperimentYoutubePageView + + // MARK: WebView Error Page Shown + case webViewErrorPageShown } } @@ -1649,6 +1652,8 @@ extension Pixel.Event { case .duckplayerExperimentWeeklySearch: return "duckplayer_experiment_weekly_search_v2" case .duckplayerExperimentYoutubePageView: return "duckplayer_experiment_youtube_page_view_v2" + // MARK: - WebView Error Page shown + case .webViewErrorPageShown: return "m_errorpageshown" } } } diff --git a/DuckDuckGo/TabViewController.swift b/DuckDuckGo/TabViewController.swift index a5207a62a3..0cb459b413 100644 --- a/DuckDuckGo/TabViewController.swift +++ b/DuckDuckGo/TabViewController.swift @@ -2063,6 +2063,7 @@ extension TabViewController: WKNavigationDelegate { if !(error.failedUrl?.isCustomURLScheme() ?? false) { url = error.failedUrl showError(message: error.localizedDescription) + Pixel.fire(pixel: .webViewErrorPageShown) } webpageDidFailToLoad()