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.
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.
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;