Click or drag to resize
CampaignService Class
Provides access to the campaign related to the current request via the implementation of ICampaignPersistentStorage.
Inheritance Hierarchy
SystemObject
  CMS.WebAnalyticsCampaignService

Namespace: CMS.WebAnalytics
Assembly: CMS.WebAnalytics (in CMS.WebAnalytics.dll) Version: 11.0.0
Syntax
C#
public class CampaignService : ICampaignService

The CampaignService type exposes the following members.

Constructors
  NameDescription
Public methodCampaignService
Creates new instance of CampaignService.
Top
Properties
  NameDescription
Public propertyCode exampleCampaignCode
Gets/sets the visitor's campaign from/to a persistent storage.
Public propertyCode exampleCampaignContent
Gets/sets the visitor's content from/to a cookie.
Public propertyCode exampleCampaignSourceName
Gets/sets the visitor's source from/to a cookie.
Top
Methods
  NameDescription
Public methodCode exampleSetCampaign
If CampaignInfo with given campaignCode exists, is running and combination of source and content is valid (when content is not null, source can't be null), sets campaignCode, source and content to their properties (CampaignCode, CampaignSourceName or CampaignContent respectively).
Top
See Also