Click or drag to resize
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.WebAnalytics
Assembly: CMS.WebAnalytics (in CMS.WebAnalytics.dll) Version: 9.0.0
Syntax
C#
[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: Boolean
True if successfully logged, or campaign is written into cookie
See Also