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

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

Property Value

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

...

// for request with cookie Content: test_content returns test_content
// for request without cookies returns null
public string GetCampaignContent() 
{
    return campaignService.CampaignContent;
}
See Also