if (allowedDomains.indexOf(origin) !== -1 && data.status && data.ranking) { // Your custom script.... // The following variables are available data.ranking.score; // The mark in (%) for this exam. eg. 100 for everything correct and 0 when every answer was wrong data.ranking.answered; // The total amount of answered questions data.ranking.correct; // Amount of correctly answered questions data.ranking.incorrect; // Amount of wrong answered questions data.ranking.points; // The amount of points that the particpant got for this session data.ranking.maximum; // The maximum possible points for this exam data.ranking.category.title; // The name of the category the particpant falls in. Likely to be 'Passed' or 'Failed' }});</script>