diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2015-02-13 12:29:55 +0100 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2015-02-13 12:29:55 +0100 |
commit | c19c049204d6480ab59e3ee10494c701a2cf6c38 (patch) | |
tree | 1a8398088732304fca5bfedcf9ae4984b86cc7b4 | |
parent | 41ec336944542d62550a7a4935a8da8bad53ee5c (diff) |
Count users of Google Analytics.
-rwxr-xr-x | analyse-ga-usage | 6 |
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" |