metric to bring visits per day google-Analytics

Asked

Viewed 23 times

0

Does anyone know any metric or dimension of google Analytics that given a date period, 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"

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"
        }]

Browser other questions tagged

You are not signed in. Login or sign up in order to post.