Try our conversational search powered by Generative AI!

[CMS 10.0.1]Google Analytics Add-on doesn't work in MVC, and throws error in Alloy

Fixed in

EPiServer.GoogleAnalytics 1.10.0

(Or a related package)


Oct 19, 2016


Nov 09, 2016


Closed, Fixed and tested


Steps to reproduce

Install EPiServer.GoogleAnalytics.1.10.0, compatible with CMS 10.0.1.

With an MVC template: In the Admin/Config/Tool Settings board, you don't see the Google Analytics gadget & menu.
With an Alloy template: If you open the Google Analytics menu in the Admin/Config/Tool Settings board, the error below is thrown:

Server Error in '/' Application.

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0234: The type or namespace name 'LanguageManager' does not exist in the namespace 'EPiServer.Core' (are you missing an assembly reference?)

Source Error:

Line 7: <div class="epi-contentArea">
Line 8: <h1 class="EP-prefix">
Line 9: <%= EPiServer.Core.LanguageManager.Instance.Translate(Model + "name")%>
Line 10: </h1>
Line 11: <span class="EP-systemInfo"><%= EPiServer.Core.LanguageManager.Instance.Translate(Model + "info") %></span>

Source File: /EPiServer/EPiServer.GoogleAnalytics/Views/Shared/Info.ascx Line: 9