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.WebAnalyticsAssembly: CMS.WebAnalytics (in CMS.WebAnalytics.dll) Version: 8.2.23
Syntax 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:
BooleanTrue if successfully logged, or campaign is written into cookie
See Also