You can pass custom page-level key-value (KV) data into Pubperf using the following API pattern:
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'pubperf.data',
KEY_NAME: VALUES,
});
The following KEY_NAME fields are supported:
author — (String) Author of the contentcategory — (String) Category or section of the pagekeywords — (Array of Strings) Related keywords or tagswindow.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'pubperf.data',
keywords: ['Sports', 'Features', 'News'],
author: 'Alex Stead',
category: 'News',
});
Once set, these custom fields will enrich your analysis data. You’ll be able to filter and segment your metrics using these dimensions in addition to the page URL to gain deeper insights into performance by author, category, and keywords.