Click or drag to resize
AnalyticsHelperSetCampaign Method
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: 8.2.23
Syntax
C#
public static bool SetCampaign(
	string campaign,
	string siteName,
	string aliasPath
)

Parameters

campaign
Type: SystemString
Campaign name
siteName
Type: SystemString
Site name
aliasPath
Type: SystemString
Node alias path for checking if url is excluded from analytics

Return Value

Type: Boolean
True if successfully logged, or campaign is written into cookie
See Also