<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to use WebAnalytics API – FrontEndDataRetriever.QueryData</title><link>http://blogs.technet.com/b/sharepointdevelopersupport/archive/2012/07/23/how-to-use-webanalytics-api-frontenddataretriever-querydata.aspx</link><description>This post is a contribution from Jaishree Thiyagarajan, an engineer with the SharePoint Developer Support team. To use WebAnalytics API, first we need to add reference to Microsoft.Office.Server.WebAnalytics.dll and Microsoft.Office.Server.WebAnalytics</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How to use WebAnalytics API – FrontEndDataRetriever.QueryData</title><link>http://blogs.technet.com/b/sharepointdevelopersupport/archive/2012/07/23/how-to-use-webanalytics-api-frontenddataretriever-querydata.aspx#3556007</link><pubDate>Sat, 02 Mar 2013 02:56:03 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3556007</guid><dc:creator>Ivan</dc:creator><description>&lt;p&gt;I have an example on how to get the Summary Report using PowerShell here: &lt;a rel="nofollow" target="_new" href="http://gallery.technet.microsoft.com/scriptcenter/Get-SharePoint-Web-19cd2137"&gt;gallery.technet.microsoft.com/.../Get-SharePoint-Web-19cd2137&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3556007" width="1" height="1"&gt;</description></item><item><title>re: How to use WebAnalytics API – FrontEndDataRetriever.QueryData</title><link>http://blogs.technet.com/b/sharepointdevelopersupport/archive/2012/07/23/how-to-use-webanalytics-api-frontenddataretriever-querydata.aspx#3516441</link><pubDate>Mon, 27 Aug 2012 12:54:26 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3516441</guid><dc:creator>Jaishree T - MSFT</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you please let me know what is the error being returned?&lt;/p&gt;
&lt;p&gt;I tested your code, it returns the expected results. &lt;/p&gt;
&lt;p&gt;Also, do you see any data being returned in UI (Site Actions -&amp;gt; Site settings -&amp;gt; &amp;nbsp;Site Web Analytics reports )?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3516441" width="1" height="1"&gt;</description></item><item><title>re: How to use WebAnalytics API – FrontEndDataRetriever.QueryData</title><link>http://blogs.technet.com/b/sharepointdevelopersupport/archive/2012/07/23/how-to-use-webanalytics-api-frontenddataretriever-querydata.aspx#3514341</link><pubDate>Tue, 14 Aug 2012 17:11:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3514341</guid><dc:creator>Anon</dc:creator><description>&lt;p&gt;The sample does not include a definition for DateTimeToDateId or GetSortOrder. I tried to implement those myself, but making the query returns an error.&lt;/p&gt;
&lt;p&gt;The implementation is as below. What am i doing wrong?&lt;/p&gt;
&lt;p&gt;private List&amp;lt;SortOrder&amp;gt; GetSortOrder(string frequency, OrderType @descending)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;List&amp;lt;SortOrder&amp;gt; sortOrders = new List&amp;lt;SortOrder&amp;gt;();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sortOrders.Add(new SortOrder(frequency, descending));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return sortOrders;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private int DateTimeToDateId(DateTime dateTime)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return (((dateTime.Year*100) + dateTime.Month)*100 + dateTime.Day);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3514341" width="1" height="1"&gt;</description></item></channel></rss>