-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added site metrics to community page #3
- Loading branch information
Showing
3 changed files
with
91 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"metrics": [ | ||
{ | ||
"name": "unique visitors", | ||
"lastWeek": 90, | ||
"total": 245 | ||
}, | ||
{ | ||
"name": "registered members", | ||
"lastWeek": 4, | ||
"total": 34 | ||
}, | ||
{ | ||
"name": "chat message count", | ||
"lastWeek": 655, | ||
"total": 2345 | ||
}, | ||
{ | ||
"name": "site updates", | ||
"lastWeek": 63, | ||
"total": 334 | ||
}, | ||
{ | ||
"name": "issues", | ||
"lastWeek": 12, | ||
"total": 452 | ||
} | ||
], | ||
"mostActive": [ | ||
{ | ||
"type": "repository", | ||
"value": "Inter Customs Ledger", | ||
"url": "https://github.com/edi3/edi3-icl" | ||
}, | ||
{ | ||
"type": "contributor", | ||
"value": "monkeypants", | ||
"url": "https://github.com/onthebreeze" | ||
} | ||
], | ||
"links": [ | ||
{ | ||
"text": "Google site metrics", | ||
"url": "" | ||
}, | ||
{ | ||
"text": "Slack team metrics", | ||
"url": "" | ||
}, | ||
{ | ||
"text": "Github project metrics", | ||
"url": "" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<h4>Metrics</h4> | ||
{%- assign metrics = site.data.metrics -%} | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Metric</th> | ||
<th>last week</th> | ||
<th>total</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for metric in metrics.metrics %} | ||
<tr> | ||
<td>{{ metric.name }}</td> | ||
<td>{{ metric.lastWeek }}</td> | ||
<td>{{ metric.total }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
|
||
|
||
<h4>Activity</h4> | ||
<ul> | ||
{% for activity in metrics.mostActive %} | ||
<li>Most active {{ activity.type }}: <a href="{{ activity.url }}" target="_blank">{{ activity.value }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
|
||
<h4>Detailed analytics links</h4> | ||
<ul> | ||
{% for link in metrics.links %} | ||
<li><a href="{{ link.url }}" target="_blank">{{ link.text }}</a></li> | ||
{% endfor %} | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters