Analytics.GetGoogleHtml Method

Generates a script that calls Google Analytics from a Web page.

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

Syntax

'Declaration
Public Shared Function GetGoogleHtml ( _
    webPropertyId As String _
) As HtmlString
'Usage
Dim webPropertyId As String
Dim returnValue As HtmlString

returnValue = Analytics.GetGoogleHtml(webPropertyId)
public static HtmlString GetGoogleHtml(
    string webPropertyId
)
public:
static HtmlString^ GetGoogleHtml(
    String^ webPropertyId
)
public static function GetGoogleHtml(
    webPropertyId : String
) : HtmlString

Parameters

  • webPropertyId
    Type: System.String
    A unique identifier for a set of Web pages that is being tracked. Contains two parts: a user account number and a profile number.

Return Value

Type: HtmlString
A script that calls Google Analytics.

Permissions

  • Medium trust for the immediate caller. This member can be used by partially trusted code.

See Also

Reference

Analytics Class

Microsoft.Web.Helpers Namespace