public void Log <TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func <TState, Exception, string> formatter) { if (!IsEnabled(logLevel)) { return; } GAApi.TrackEvent(logLevel.ToString(), _name, $"{formatter(state, exception)}"); }
public override void OnActionExecuted(ActionExecutedContext filterContext) { GAApi.TrackPageview(filterContext.HttpContext.Request.Path + filterContext.HttpContext.Request.QueryString); }