ASP.NET Core 6.0 - Homegrown Analytics Project

ASP.NET Core 6.0 - Homegrown Analytics Project
ASP.NET Core 6.0 LTS 

The Analytics middleware collects and analyzes the properties of the HttpContext and Request. The middleware creates and stores a new Session if the SessionId cookie is not found. The middleware looks for a known UserAgent and creates and stores a new UserAgent if not found. The middleware creates and stores a new PageHit and NotFound errors.

PageHit pageHit = new(method, path, queryString, userAgentId, sessionId, anonymizedIp, userAuthenticated, cookieConsent, screenSize, Convert.ToInt32(minutesOffset));

The project is designed and organized to allow easy integration with existing projects. See ASP.NET Core 6.0 - Analytics Schema and Integration. The project includes SQL scripts to create the schema and default data. Use the CreateAnalyticsSchema script with an existing database or the CreateDatabaseAndAnalyticsSchema script to create a new database. The project includes a AnalyticsSchema migration which will create the default UserAgent, Session, and AnalyticsSchema version. The PurgeExpiredAnalytics script deletes expired related records. The RemoveAnalyticsSchema will remove all analytics and Hangfire data and schema. The project implements the KenHaggerty. Com. SingleUser. Net6 NuGet package which provides log in and log out pages for a single user to access the Admin pages. The SingleUser Net6 NuGet package segregates the user logic. Details, screenshots, and related articles can be found at ASP.NET Core 6.0 - Homegrown Analytics Project. The details page includes the version change log.

Access Fee
928,990 bytes 
File Name 
License Type
Change Log
v1.0.0 - 2021-12-15
-- Migrated From .NET 5.0@1.3.2
-- Implemented Top-Level Statements
-- Implemented Global Usings
-- Implemented File Scoped Namespaces
-- Implemented Analytics Settings
-- Implemented Global DateTime Formats
-- Implemented Global EnableCookieConsent
-- Implemented Revoke Cookie Consent
-- Implemented dynamic-modals.js
-- Updated MS NuGet Packages@6.0.1
-- Updated Bootstrap-Native@4.0.7
-- Updated AnalyticsSchema@1.1.0
-- Updated Must Accept Cookies
-- Updated CheckForUpdate
-- Continuity and bug fixes