aboutsummaryrefslogtreecommitdiffstats
path: root/analyse-ga-usage
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2015-02-13 12:29:55 +0100
committerPetter Reinholdtsen <pere@hungry.com>2015-02-13 12:29:55 +0100
commitc19c049204d6480ab59e3ee10494c701a2cf6c38 (patch)
tree1a8398088732304fca5bfedcf9ae4984b86cc7b4 /analyse-ga-usage
parent41ec336944542d62550a7a4935a8da8bad53ee5c (diff)
Count users of Google Analytics.
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"