metric to bring visits per day google-analytics

0

Does anyone know of any metrics or dimension of google analytics that given a date range, it brings number of hits for each day of that period? Example:

dateRanges: [
          {
            startDate: '23-11-2017',
            endDate: '25-11-2017'
          }
        ],
        metrics: [
          {
            expression: 'ga:UsuariosPorDia'
          }

Answer:

"2017-11-23": 25,
"2017-11-24": 50,
"2017-11-25"

    
asked by anonymous 23.11.2017 / 17:22

1 answer

0

I got what I needed by adding the "ga: date" parameter in dimensions.

Example:

 metrics: [
          {
            expression:'ga:users'
          },

        ],
        dimensions: [
        {
          name: "ga:date"
        }]
    
23.11.2017 / 18:34