diff options
author | Matthieu <matthieu.cneude@gmail.com> | 2019-01-19 19:35:35 +0100 |
---|---|---|
committer | Matthieu <matthieu.cneude@gmail.com> | 2019-01-19 19:35:35 +0100 |
commit | af45d110aa3f22dbf978d6967d8395a047eec8cd (patch) | |
tree | 413ade6ffeaf2b45d51c6806ed67f4f68470570f | |
parent | 7a5e65495b654009d981739f47a78a8ec40d2f54 (diff) |
Order properly months for ga users widget and display days without any
visits
-rwxr-xr-x | cmd/devdash/devdash | bin | 13735187 -> 13735187 bytes | |||
-rw-r--r-- | internal/plateform/ga.go | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/cmd/devdash/devdash b/cmd/devdash/devdash Binary files differindex bbc06cd..f1917f0 100755 --- a/cmd/devdash/devdash +++ b/cmd/devdash/devdash diff --git a/internal/plateform/ga.go b/internal/plateform/ga.go index 1ca5a8b..6a07380 100644 --- a/internal/plateform/ga.go +++ b/internal/plateform/ga.go @@ -73,6 +73,13 @@ func (c *Client) GetReport(viewID string, startDate string, endDate string) (*ga {Name: "ga:month"}, {Name: "ga:day"}, }, + OrderBys: []*ga.OrderBy{ + { + FieldName: "ga:month", + SortOrder: "DESCENDING", + }, + }, + IncludeEmptyRows: true, }, }, } |