diff --git a/reqifviewer/App.razor b/reqifviewer/App.razor index 6aa7fc8..9403f48 100644 --- a/reqifviewer/App.razor +++ b/reqifviewer/App.razor @@ -24,3 +24,4 @@ + diff --git a/reqifviewer/Program.cs b/reqifviewer/Program.cs index fe1d138..cca3c2a 100644 --- a/reqifviewer/Program.cs +++ b/reqifviewer/Program.cs @@ -22,6 +22,8 @@ namespace reqifviewer { using System.Threading.Tasks; + using Blazor.Analytics; + using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Microsoft.Extensions.DependencyInjection; @@ -52,7 +54,9 @@ public static async Task Main(string[] args) builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); - + + builder.Services.AddGoogleAnalytics("295704041"); + builder.Services.AddSingleton(); await builder.Build().RunAsync(); diff --git a/reqifviewer/_Imports.razor b/reqifviewer/_Imports.razor index efc6f7e..d23c079 100644 --- a/reqifviewer/_Imports.razor +++ b/reqifviewer/_Imports.razor @@ -11,4 +11,6 @@ @using reqifviewer.Pages @using Radzen @using Radzen.Blazor -@using ReqifViewer.Infrastructure \ No newline at end of file +@using ReqifViewer.Infrastructure +@using Blazor.Analytics +@using Blazor.Analytics.Components \ No newline at end of file diff --git a/reqifviewer/reqifviewer.csproj b/reqifviewer/reqifviewer.csproj index 453af3f..9a271d9 100644 --- a/reqifviewer/reqifviewer.csproj +++ b/reqifviewer/reqifviewer.csproj @@ -21,6 +21,7 @@ + diff --git a/reqifviewer/wwwroot/index.html b/reqifviewer/wwwroot/index.html index 066f408..6185ff5 100644 --- a/reqifviewer/wwwroot/index.html +++ b/reqifviewer/wwwroot/index.html @@ -115,6 +115,7 @@ +