From 29742bd1b26b7175d31c1379b5c07c6cd7ec5a10 Mon Sep 17 00:00:00 2001 From: Chris Witte Date: Mon, 22 Feb 2021 11:25:31 -0600 Subject: [PATCH] Added Application Insights Web for the webMVC app to capture real user monitoring --- src/Web/WebMVC/Views/Shared/_Layout.cshtml | 1 + src/Web/WebMVC/Views/_ViewImports.cshtml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Web/WebMVC/Views/Shared/_Layout.cshtml b/src/Web/WebMVC/Views/Shared/_Layout.cshtml index ee0c724c4..0976616e4 100644 --- a/src/Web/WebMVC/Views/Shared/_Layout.cshtml +++ b/src/Web/WebMVC/Views/Shared/_Layout.cshtml @@ -30,6 +30,7 @@ + @Html.Raw(JavaScriptSnippet.FullScript)
diff --git a/src/Web/WebMVC/Views/_ViewImports.cshtml b/src/Web/WebMVC/Views/_ViewImports.cshtml index ac59773cf..14fd3dd37 100644 --- a/src/Web/WebMVC/Views/_ViewImports.cshtml +++ b/src/Web/WebMVC/Views/_ViewImports.cshtml @@ -2,4 +2,5 @@ @using Microsoft.eShopOnContainers.WebMVC.ViewModels @using Microsoft.AspNetCore.Identity +@inject Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet JavaScriptSnippet @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers