Try our conversational search powered by Generative AI!

Google Analytics when using OWIN

Vote:
 

Hi,

I have problem to get Google Analytics work when using OWIN authentication.
OWIN setup removes all role managers and GA seems to be dependent on a role manager, see log below.

Any suggestions how to solve this?

2016-01-27 09:11:05,939 [25] ERROR EPiServer.Global: 1.2.5 Unhandled exception in ASP.NET
System.Configuration.Provider.ProviderException: The Role Manager feature has not been enabled.
at System.Web.Security.Roles.EnsureEnabled()
at System.Web.Security.Roles.get_Provider()
at EPiServer.GoogleAnalytics.Controllers.AdministrationController.GetViewModel(GlobalAnalyticsSettings settings)
at EPiServer.GoogleAnalytics.Controllers.AdministrationController.Index()
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.b__12()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
at System.Web.Mvc.Controller.ExecuteCore()
at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)
at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.ProcessController(IController controller)
at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
System.Configuration.Provider.ProviderException: The Role Manager feature has not been enabled.
at System.Web.Security.Roles.EnsureEnabled()
at System.Web.Security.Roles.get_Provider()
at EPiServer.GoogleAnalytics.Controllers.AdministrationController.GetViewModel(GlobalAnalyticsSettings settings)
at EPiServer.GoogleAnalytics.Controllers.AdministrationController.Index()
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.b__12()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
at System.Web.Mvc.Controller.ExecuteCore()
at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)
at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.ProcessController(IController controller)
at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

#143576
Jan 27, 2016 9:15
Vote:
 

I've reported this as a bug in early december (#GA-11 Google Analytics plugin with ASP.NET Identity crashes), but it haven't even reached the bug list here on World yet. :(.

#143582
Jan 27, 2016 9:38
Vote:
 

Hi Erik!

Thanks for the info.
I hope someone at EPiServer will give us some response on this.

#143586
Jan 27, 2016 10:25
Vote:
 

We have the same problem. I asked this from EpiServer support and the issue is known and the fix is under way. If everything goes as planned, fixed version should be out in couple of weeks.

#143705
Jan 29, 2016 8:49
Vote:
 

OK, thanks!

Let me know if you hear more about this issue.

Regards

Erik

#143808
Feb 01, 2016 15:16
Vote:
 

Update:
The latest version of the Google Analytics add-on know coexists with OWIN/federated security.
However, there is still an issue when logging in to an GA account in admin mode.
The login request tries to contact the local site via HTTP instead of HTTPS which results in a 404.

A workaround is to take the failing url and change HTTP to HTTPS in the browser.

#146795
Mar 24, 2016 10:36
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.