Advertisement
Guest User

Untitled

a guest
Aug 16th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. var totalStats = _analyticsAccess.GetStats("ga:" + Settings.AnalyticsAccount,
  2. startDate,
  3. endDate,
  4. "ga:productDetailViews",
  5. "ga:dimension4,ga:dimension11,ga:date,ga:productName,ga:dimension11",
  6. null,
  7. null,
  8. 10000);
  9.  
  10. var newProds = _statsConverter.ExtractTable(totalStats.Result, new string[] { "ga:date" }).Select(t => new Date(t.ColumnValues[0], t.Totals)).ToList();
  11.  
  12.  
  13. List<Date> interactionDates = newProds.Select(prod => new Date(prod.GoogleFormatedDate, prod.Totals)).ToList();
  14.  
  15. ChartModel projectActivityGraph = _statsConverter.ForDateBoundGraphs(interactionDates, "Project Activity", startDate, endDate, new string[] { "Views" }, seriesNameOverride: new List<string> { "Model Interactions" });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement