The channel
variable typically stores the section of the site a given page is on. It is helpful to determine what groups of your site are most popular. This variable populates the ‘Site Sections’ dimension.
Channel is mapped to the following variables:
web.webPageDetails.siteSection
data.__adobe.analytics.channel
or data.__adobe.analytics.ch
You can set channel either while configuring the Analytics extension (global variables) or under rules.
You can set channel to any string value or data element.
The s.channel
variable is a string that typically contains the page’s site section. It has a maximum value of 100 bytes; longer values are truncated.
s.channel = "Example site section";
If using the digitalData
data layer:
s.channel = digitalData.page.category.primaryCategory;