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: 10.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 exampleCampaignSourceName
Gets/sets the visitor's source from/to a cookie.
Top
Methods
  NameDescription
Public methodCode exampleSetCampaign
If CampaignInfo with given campaignCode exists and is running, sets both campaignCode and source to their properties (CampaignCode or CampaignSourceName respectively).
Top
See Also