aboutsummaryrefslogtreecommitdiffstats
path: root/analyse-ga-usage
diff options
context:
space:
mode:
Diffstat (limited to 'analyse-ga-usage')
-rwxr-xr-xanalyse-ga-usage6
1 files changed, 6 insertions, 0 deletions
diff --git a/analyse-ga-usage b/analyse-ga-usage
new file mode 100755
index 0000000..337b3aa
--- /dev/null
+++ b/analyse-ga-usage
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+total=$(ls har-data/*.har | wc -l)
+gausers=$(grep -l google-analytics.com har-data/*.har | wc -l)
+
+printf "%d (%.1f) of %d\n" "$gausers" "$(echo 100 \* $gausers / $total | bc -l)" "$total"