Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var totalStats = _analyticsAccess.GetStats("ga:" + Settings.AnalyticsAccount,
- startDate,
- endDate,
- "ga:productDetailViews",
- "ga:dimension4,ga:dimension11,ga:date,ga:productName,ga:dimension11",
- null,
- null,
- 10000);
- var newProds = _statsConverter.ExtractTable(totalStats.Result, new string[] { "ga:date" }).Select(t => new Date(t.ColumnValues[0], t.Totals)).ToList();
- List<Date> interactionDates = newProds.Select(prod => new Date(prod.GoogleFormatedDate, prod.Totals)).ToList();
- 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