CampaignServiceSetCampaign Method |
Namespace: CMS.WebAnalyticsAssembly: CMS.WebAnalytics (in CMS.WebAnalytics.dll) Version: 11.0.0
Syntax
ExceptionsException | Condition |
---|
ArgumentException | campaignCode is null -or- siteName is null or empty |
Examples
Following example shows how to use the
SetCampaign(String, String, String, String) method.
var campaignService = new CampaignService();
...
campaignService.SetCampaign("myCampaign", "mySite", "mySource", "myContent");
...
public string GetCampaignCode()
{
return campaignService.CampaignCode;
}
public string GetSourceName()
{
return campaignService.CampaignSourceName;
}
public string GetCampaignContent()
{
return campaignService.CampaignSourceName;
}
See Also