Embed API and dashboard

40 views
Skip to first unread message

jordan giebas

unread,
Sep 2, 2015, 12:31:07 PM9/2/15
to Google Analytics Management API
For my university, I'm currently working on a site statistics page in which it shows a graph of the number of pageviews for a particular part of the page. Everything is working perfectly, the only problem is that in the demo where you construct the graph, it has a date range where you input the "startDate" and "endDate". In the demo, for start date it says '30daysAgo', however, I need it to be a particular date, particularly August 9th, 2015. I've tried a bunch of different ways to put in the date format and it won't let me, does anybody know the syntax of how to do so?



----- I realize this is the management API forum, but I'm not included in the embed API forum so I thought I'd ask here since I received a lot of help from here before. 


Thanks,
Jordan

Matthew Cohoon

unread,
Sep 2, 2015, 1:45:39 PM9/2/15
to Google Analytics Management API
Hi Jordan,

The start date format is 2015-08-09 for August 9th, 2015. Here is the reference article: https://developers.google.com/analytics/devguides/reporting/core/v3/reference#startDate

Also the query explorer gives a good example of inputing the date. 

Here is a link to the Core Reporting API forum for future reference, and all the Google Analytics Developer Platform support venues.

Good luck,
Matt



--
You received this message because you are subscribed to the Google Groups "Google Analytics Management API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-mana...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages