There are two ways to create a mapping:
- With the page component (host, path, query)
- With custom variables (cvars, which are variables pulled from your datalayer and enabling you to categorize a page)
If your website includes a datalayer, you can define your mapping with cvars, otherwise, you'll have to use pages.
How to create a mapping based on cvars
Mapping assistant facilitates the creation of mappings by automating a set of pages into page groups. It reduces the time spent on the set-up and allows you to get to the analysis and insights faster.
Custom Variables (CVARs) allow you to collect 'additional information' from the datalayer of your website, this information can then be used to create mappings. The Mapping Assistant will automatically populate customvar values with additional information on the page type (Product page, List page, checkout, etc.) and match the right pages.
Step 1
After clicking on 'New mapping', select the Mapping assistant:
Step 2
In the split option, choose 'I want to split with custom variable':
Step 3
Select values for your new page groups (one value=one page group), then rename new page groups and assign categories:
Note: Mappings with CVARs are not necessarily exhaustive. Once the pages are created, you can refine the mapping and use all functionalities (move, exclude, etc.).