Page Groups
Page groups allow you to semantically group pages together to analyze on-page activity aggregated across multiple pages instead of individual pages.
Page groups can be used in aggregate heatmaps, funnels, and segments and then used to filter any report where segments are used.
There are several ways to create page groups in DXA. Each method is outlines below.
Creating a page group using URLs
On the navigation bar, go to Define > Page Groups > + Create.
Enter a page group Name.
- In Type, select Regex.Note: This is already selected by default.
In the Regex box, enter a valid regex statement to group URL paths, as the Regex does not take into account query or fragments.
A list of pages from the property that will be included in the page group appears.
Click Save Page Group.
The page group is saved.
Creating a page group using data layer variables
On the navigation bar, go to settings > Property Settings > Data Layer and click + Add Data Layer.
Enter a Variable name, such as dataLayer.pageType.
Enter a Description about the data layer.
In Action, select Create page group.
(Optional) In Limit, enter a limit to the number of page groups that will be created.
In Execution, select Automatic.
Click Save Data Layer.
A new page group is created based on the data layer variable value. For example, using dataLayer.pageType returns values such as PDP, Checkout and Home. Page groups will be created and named after the values that are returned. If a group has already been created, then the page will be added to this group.
Creating a page group using the sendPageGroup endpoint
Follow steps 1 to 5 in Creating a page group using data layer variables.
In Execution, select Manual.
Click Save Data Layer.
The page group appears on the list in Data Layer Settings.
In the Actions column, click Edit.
From here, you can see the data layer ID. This will be required to call the
sendPageGroup
endpoint.- On pages you want to put in a page group, send the
sendPageGroup
endpoint. For example:decibelInsight.sendPageGroup("Page Group Name", 1)
In the above example. replace "Page Group Name" with the name of the page group and replace "1" with the data layer ID.
Creating a page group using page roles
sendPageGroup
endpoint, mentioned above.