GetPlugin("MetricsRecorder"); $ViewCountData = $Recorder->GetFullRecordViewCounts(NULL, NULL, 0, 30); # retrieve URL field click counts $Schema = new MetadataSchema(); $UrlField = $Schema->GetFieldByMappedName("Url"); $ClickCountData = $Recorder->GetUrlFieldClickCounts($UrlField->Id(), NULL, NULL, 0, 30); function PrintRecordTable($CountData, $Caption) { ?>

##

Resource | Count
--- | ---
$Count) { $Resource = new Resource($Id); ?>
GetMapped("Title"); ?> |
| Period: " .date("M j Y", strtotime($CountData["StartDate"]))." - " .date("M j Y", strtotime($CountData["EndDate"])) .""; ?>

# Collection Usage Metrics