Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

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.


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

public static class Analytics

The Analytics type exposes the following members.

Public methodStatic memberGetGoogleAsyncHtmlGenerates a script that calls Google Analytics from a Web page and that loads asynchronously.
Public methodStatic memberGetGoogleHtmlGenerates a script that calls Google Analytics from a Web page.
Public methodStatic memberGetStatCounterHtmlGenerates a script that calls StatCounter from a Web page.
Public methodStatic memberGetYahooHtmlGenerates a script that calls Yahoo Marketing Solutions from a Web page.

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