channel
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 using the Web SDK
Channel is mapped to the following variables:
- XDM object:
web.webPageDetails.siteSection
- Data object:
data.__adobe.analytics.channel
ordata.__adobe.analytics.ch
Channel using the Adobe Analytics extension
You can set channel either while configuring the Analytics extension (global variables) or under rules.
- Log in to Adobe Experience Platform Data Collection using your AdobeID credentials.
- Click the desired tag property.
- Go to the Rules tab, then click the desired rule (or create a rule).
- Under Actions, click an existing Adobe Analytics - Set Variables action or click the ‘+’ icon.
- Set the Extension drop-down list to Adobe Analytics, and the Action Type to Set Variables.
- Locate the Channel section.
You can set channel to any string value or data element.
s.channel in AppMeasurement and the Analytics extension custom code editor
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;
recommendation-more-help
b4f6d761-4a8b-4322-b801-c85b9e3be690