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