summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu <matthieu.cneude@gmail.com>2019-01-19 19:35:35 +0100
committerMatthieu <matthieu.cneude@gmail.com>2019-01-19 19:35:35 +0100
commitaf45d110aa3f22dbf978d6967d8395a047eec8cd (patch)
tree413ade6ffeaf2b45d51c6806ed67f4f68470570f
parent7a5e65495b654009d981739f47a78a8ec40d2f54 (diff)
Order properly months for ga users widget and display days without any
visits
-rwxr-xr-xcmd/devdash/devdashbin13735187 -> 13735187 bytes
-rw-r--r--internal/plateform/ga.go7
2 files changed, 7 insertions, 0 deletions
diff --git a/cmd/devdash/devdash b/cmd/devdash/devdash
index bbc06cd..f1917f0 100755
--- a/cmd/devdash/devdash
+++ b/cmd/devdash/devdash
Binary files differ
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,
},
},
}