For a website I administer, I'm using Google Analytics API to pull the information I'm interested in, and want to do a little processing in WL. This includes want to do a simple plot of some data.
google = ServiceConnect["GoogleAnalytics"]
sessionsperdate = google["ReportData", {"ProfileID" -> xxxxxxx,
"Dimensions" -> "Date",
"Metrics" -> "Sessions",
"StartDate" -> "October 1, 2020",
"EndDate" -> "December 31, 2020",
MaxItems -> 1000, "StartIndex" -> 1,
"SamplingLevel" -> "HigherPrecision"
}];
This code returns a two column dataset, the first is Date (as a DateObject), the second is number of Sessions (an Integer, with values ranging from 1 to 100). Just for grins I want to see a plot of the sessions across all 92 days. So, I enter
DateListPlot[sessionsperdate]
What I get, for what I was expecting to be a no brainer, no frills plot, was an empty plot, with the x-axis ranging from 23:59:59 to 00:00:01 instead of dates of each day in the list, and the y-axis ranging from -1.0 to 1.0 instead of integers between 1 and 100.
I've tried several unsuccessful machinations, such as
sessionsperdate // Normal // Values
to get a list of pairs, which is then fed into DateListPlot.
Clearly I'm not understanding even the most basic of the WL. What do I need to do get this to work?
Attachments: