AnalyticsHelperSetCampaign Method |
Note: This API is now obsolete.
Creates log with current campaign or write campaign into cookie, if Javascript logging is enabled. Cookie will be used for logging using web analytics service.
Namespace: CMS.WebAnalyticsAssembly: CMS.WebAnalytics (in CMS.WebAnalytics.dll) Version: 9.0.0
Syntax [ObsoleteAttribute("Use CampaignService.SetCampaign instead.")]
public static bool SetCampaign(
string campaign,
string siteName,
string source = null
)
Parameters
- campaign
- Type: SystemString
Campaign name - siteName
- Type: SystemString
Site name - source (Optional)
- Type: SystemString
Channel name
Return Value
Type:
BooleanTrue if successfully logged, or campaign is written into cookie
See Also