Click or drag to resize
CampaignServiceCampaignSourceName Property
Gets/sets the visitor's source from/to a cookie.

Namespace: CMS.WebAnalytics
Assembly: CMS.WebAnalytics (in CMS.WebAnalytics.dll) Version: 10.0.0
Syntax
C#
public string CampaignSourceName { get; }

Property Value

Type: String

Implements

ICampaignServiceCampaignSourceName
Examples
Following example shows how to use the CampaignSourceName property in the case CookieCampaignPersistentStorage is used as implementation of ICampaignPersistentStorage.
var campaignService = new CampaignService();

...

// for request with cookie Source: test_source returns test_source
// for request without cookies returns null
public string GetSourceName() 
{
    return campaignService.CampaignSourceName;
}
See Also