Click or drag to resize

JSHelperAddGoogleAnalytics Method

Add Google Analytics script to the page header. For best performance this should go at the very end of the header, immediately before the close of the header tag.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static void AddGoogleAnalytics(
	IAppContext appCxt,
	Page page,
	string profileID,
	string domainName,
	string mop,
	GoogleAnalyticsOptions gao,
	string pageTitle = null
)

Parameters

appCxt
Type: NetQuarryIAppContext
The application.
page
Type: System.Web.UIPage
The page to which to add the script.
profileID
Type: SystemString
The profile ID for the Google Analytics account.
domainName
Type: SystemString
The domain to track, may be omitted.
mop
Type: SystemString
The MOP.
gao
Type: NetQuarryGoogleAnalyticsOptions
Google Analytics options.
pageTitle (Optional)
Type: SystemString
The title of the page. Note that this will NOT be resolved at this point so if the title has field markers they will be inserted raw.
See Also