This allows you to fire your own logic e.g. pixel events based on high accurate revenue predictions and top n session percentages.
To enable the predictions, set assertive.predict.enabled
option to true
.
window.assertive.predict = {
enabled: true,
};
To access the revenue prediction, attach to the assertive_predictedRevenue
event and check the events data object for impression, pageView and session revenue predictions. Note: predictions are in CPM
addEventListener(
"assertive_predictedRevenue",
function (e) {
console.log("assertive_predictedRevenue", e.data);
},
false
);
The e.data
object returned on every tracked revenue event:
{
predictedRevenueCPM: {
impression: 0.29518782454658005,
pageView: 0.75443967454658,
session: 3.82856877149944,
},
topNPercent: {
session: 77,
}
}
Prediction performance should be judged according to the R-Squared (R2) metric. Other metrics of error (KMAE, KRMSE) are only useful to compare results across the same entity.
This is not a rule of thumb. You might get useful results even with "weak" R2s.
Discover helpful resources for deep-dive industry knowledge
Experience faster and more effective assistance with our exclusive AY support
With comprehensive courses and recognizable certificates, take your next steps with us.
Browse an extensive list of industry-related buzzwords and find answers to your questions.
What's new on AY? This collection is an overview of new products and features release in AY tools.