Analytics.GetGoogleAsyncHtml Method
Generates a script that calls Google Analytics from a Web page and that loads asynchronously.
Namespace: Microsoft.Web.Helpers
Assembly: Microsoft.Web.Helpers (in Microsoft.Web.Helpers.dll)
Syntax
'Declaration
Public Shared Function GetGoogleAsyncHtml ( _
webPropertyId As String _
) As HtmlString
'Usage
Dim webPropertyId As String
Dim returnValue As HtmlString
returnValue = Analytics.GetGoogleAsyncHtml(webPropertyId)
public static HtmlString GetGoogleAsyncHtml(
string webPropertyId
)
public:
static HtmlString^ GetGoogleAsyncHtml(
String^ webPropertyId
)
public static function GetGoogleAsyncHtml(
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.
Remarks
The script loads asynchronously.
Permissions
- Medium trust for the immediate caller. This member can be used by partially trusted code.