Current month - Metabase- Google Anlystics - json query?


#1

I am trying to use Google Analytics json query in Metabase to automatically set current monthly data. I want to set it such that I don’t have to change the start and end date each month. It can automatically update.

example:
For today, I use this:
{
“ids”: “ga:1234”,
“start-date”: “today”,
“end-date”: “today”,
“metrics”: “ga:users”,
“dimensions”: “”,
“include-empty-rows”: false,
“max-results”: 2000
}

how can I automatically set current month using the json query not the using the metabase interface?