Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

Google Analytics plugin crashes when disable Role provider

Found in

EPiServer.GoogleAnalytics 1.9.2.9000

Fixed in

EPiServer.GoogleAnalytics 1.9.3.9000

(Or a related package)

Created

Dec 03, 2015

Updated

Nov 08, 2016

State

Closed, Fixed and tested


Description

Install a Alloy site.
Install Google Analytics plugin
Remove membership/roleprovider from web.config (actually in this case customer use ASP.net Identity)
Set <authentication mode="None"> in web.config
Start site/

Solution:
For ASP.net Identity follow http://sveinaandahl.blogspot.no/2015/08/how-to-integrate-aspnet-identity-with.html

It seems that the underlying issue is that they're able to login with ADFS (with roleManager to set true or false), but can't see the GA gadget or config even with their role added to the virtual roles in episerver.framework section of web.config.

I think the EPIAdmins group needs to be allowed for the "admin" location (web.config), similar to this:
<location path="[the_site_custom_path]/CMS/admin">
<system.web>
<authorization>
<allow roles="CmsAdmins, EPIAdmins" />
<deny users="*" />
</authorization>
</system.web>
</location>