Search Analytics & Usage Analytics


Configure recommendations and usage event types in SharePoint Server

Overview of analytics processing in SharePoint Server

How to get Search Analytics Reports programmatically in SharePoint 2013
– GetSearchReport
– GetRollupAnalyticsItemData

#The first parameter with the value “1” is setting the Event Type. Event Type 1 = views. The next parameter is the TenantID, followed by SiteID, date value, month / day switch(false=month, true=day) and the max result value (100 means show me the top 100 search terms).
$FilterDate = Get-Date “2018-12-03”
$SearchData = $searchApp.GetSearchReport(1,[System.Guid]::Empty,$Site.ID,$FilterDate,$false,100);

How to get analytics reports programmatically in SharePoint 2013?



Create a calculated column in your Calender List that uses this formula:

from :


* Set PeoplePicker Field(2007 or 2010 Style, Calendar/Event Form ) value
* @param {string} FieldDisplayName
* @param {string} FieldValue
* @return {boolean}
function setPeoplePickerName(FieldDisplayName, FieldValue){

var searchText = RegExp(“FieldName=\”” + FieldDisplayName + “\””, “gi”);

$(“.ms-formbody”).each(function() {
//$(“span.fieldValueSpan”).parent().each(function() {
if(searchText.test($(this).html())) {
//alert($(this).find(“div[Title=’People Picker’]”).length);
if($(this).find(“div[Title=’People Picker’]”).length > 0){
$(this).find(“div[Title=’People Picker’]”).html(FieldValue);
$(this).find(“div[Title=’People Picker’]”).val(FieldValue);
else{ //after SharePoint 2018 April CU, the people picker structure have been changed
$(this).find(“div[Title='”+ FieldDisplayName +”‘]”).html(FieldValue);
//$(this).find(“a[Title=’Check Names’]”).click();
return true;

return false;