Click or drag to resize
KenticoWebAnalyticsLoggerController Class
Controller responsible for asynchronous web analytics data logging via javascript. Provides method for statistics and method returning client script for logging via javascript AJAX on client side.
Inheritance Hierarchy
SystemObject
  ControllerBase
    Controller
      Kentico.OnlineMarketing.Web.MvcKenticoWebAnalyticsLoggerController

Namespace: Kentico.OnlineMarketing.Web.Mvc
Assembly: Kentico.OnlineMarketing.Web.Mvc (in Kentico.OnlineMarketing.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public class KenticoWebAnalyticsLoggerController : Controller

The KenticoWebAnalyticsLoggerController type exposes the following members.

Constructors
  NameDescription
Public methodKenticoWebAnalyticsLoggerController
Creates a new instance of KenticoWebAnalyticsLoggerController.
Top
Methods
  NameDescription
Public methodLogAnalytics
Logs analytics data for given url.
Public methodScript
Returns self executing javascript code snippet which calls logging action via AJAX.
Top
Remarks
Enable Web Analytics feature via application builder IFeatureBuilder.UseWebAnalytics(). Furthermore, include script in your layout @Html.Kentico().WebAnayticsLoggingScript() or @Html.Kentico().WebAnayticsLoggingScript(new WebAnalyticsScriptOptions()).
See Also