Comparing Date Ranges in Google Analytics API
问题 I'm currently working on a live dashboard of data from Google Analytics using JqPlot I can return the current days traffic by hour which is great, but what I also want to do is to create a graph that has today's traffic and the same day last week's data. Basically I want to return the same data as I can when I compare date ranges in GA. Can anyone help please? Thanks Adi 回答1: Create two variables as startDate and endDate Get current days traffic AS below set startDate and endDate as today