Analytics Class

Generates scripts that enable a page to be tracked by Web-based analytic tools such as Google Analytics, Yahoo Marketing Solutions, and StatCounter.

Inheritance Hierarchy

System.Object
  Microsoft.Web.Helpers.Analytics

Namespace:  Microsoft.Web.Helpers
Assembly:  Microsoft.Web.Helpers (in Microsoft.Web.Helpers.dll)

Syntax

'Declaration
Public NotInheritable Class Analytics
'Usage
You do not need to declare an instance of a static class in order to access its members.
public static class Analytics
public ref class Analytics abstract sealed
public final class Analytics

The Analytics type exposes the following members.

Methods

  Name Description
Public methodStatic member GetGoogleAsyncHtml Generates a script that calls Google Analytics from a Web page and that loads asynchronously.
Public methodStatic member GetGoogleHtml Generates a script that calls Google Analytics from a Web page.
Public methodStatic member GetStatCounterHtml Generates a script that calls StatCounter from a Web page.
Public methodStatic member GetYahooHtml Generates a script that calls Yahoo Marketing Solutions from a Web page.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Web.Helpers Namespace