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

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

Property Value

Type: String
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