AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

BusinessObjectSiteSetting<(Of <(<'T>)>)>..::..GoogleAnalyticsCode Property

Gets or sets the google analytics code.

Namespace:  AdvantageCMS.Core.Admin.BaseClasses
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


[BrowsableAttribute]
[EditorBrowsableAttribute]
public virtual string GoogleAnalyticsCode { get; set; }

Field Value

The google analytics code.

Examples


Set the Google Analytics tracking code for a domain.
C#
var settings = new MySiteSettings();
settings.GoogleAnalyticsCode = "UA-123456789-1";