In order to work, the custom data has to be named exactly "page_type"
Note: It is important to place this code before the main iAdvize code.
This custom data can also be used along with other existing custom data. Just remember to insert each custom data into the same variable idzCustomData:
2/ Using the "Type of page" filter in the reports
The "Type of page" filter in the reports is only available for the Contacts, Sales and Satisfaction reports. Once the "page_type" custom data is integrated into your site, the page type information will be shown there.
Here is the result for the Contacts report:
Note: Contrary to the supervision page, the reports are not updated in real time. The data will not be available right after the custom data integration. It can take up to 1 hour 20 minutes before new data is taken into account.
3/ Other ways to use the page type custom data
Since the page_type custom data is directly connected to a filter in the reports, it can also be used to show any other type of data in the statistics (though it is not its primary goal).
For example you could fill the custom data with the device information (mobile, desktop,...), or the location of your visitor. Then you will be able to access this information in the reports.
For further information go to: