Defining Page Roles
Page Roles can be used in Aggregate Heatmaps as a way to analyse on-page activity aggregated across a number of pages, rather than on an individual page-by-page level. These can be implemented by using the setPageRole end-point, such as below.
decibelInsight.setPageRole(3)
With the number in the brackets replaced by the relevant ID of the Page Role that you wish to set. The full list of pre-defined Page Roles can be found below.
- 0 No Role
- 1 Home
- 2 Landing
- 3 Product Category
- 4 Product Detail
- 5 Basket
- 6 Checkout
- 7 Call to Action
- 8 Promotion
- 9 Advertisement
- 10 Contact
- 11 News
- 12 Article
- 13 Blog
- 14 Case Study
- 15 About
- 16 Service Category
- 17 Service Detail
- 18 Terms
- 19 Sitemap