-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
114 additions
and
0 deletions.
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,11 @@ | ||
type,title,ga_user_percentage,ma_user_percentage | ||
browser,Chrome,71.88,64.5 | ||
browser,Firefox,12.51,18.6 | ||
browser,Safari,7.68,10.8 | ||
browser,Edge,3.58,3.5 | ||
os,Windows,45.88,45.4 | ||
os,GNU/Linux,17.27,24.4 | ||
os,Mac,15.4,18.4 | ||
os,iOS,4,6.4 | ||
os,Android,15.4,5 | ||
os,Chrome OS,1.42,0.3 |
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,13 @@ | ||
title,link,date,ma_pageviews,ma_uniqueviews,ma_avgloadtime,ga_pageviews,ga_uniqueviews,ga_avgloadtime | ||
"Setup Jupyter with Py 2, 3, and R",https://evanwill.github.io/_drafts/notes/dual-python-notebook.html,2020-12,618,502,1.75,678,558,2.63 | ||
Transfer iPhone to Linux,https://evanwill.github.io/_drafts/notes/iphone-transfer.html,2020-12,291,269,0.81,325,300,0 | ||
Add more to Git Bash on Windows,https://evanwill.github.io/_drafts/notes/gitbash-windows.html,2020-12,85,83,2.07,111,106,2.35 | ||
Go-Go GH-Pages home,https://evanwill.github.io/go-go-ghpages-b/,2020-12,140,88,1.81,189,105,0 | ||
"Setup Jupyter with Py 2, 3, and R",https://evanwill.github.io/_drafts/notes/dual-python-notebook.html,2021-01,623,527,1.81,680,570,0.76 | ||
Transfer iPhone to Linux,https://evanwill.github.io/_drafts/notes/iphone-transfer.html,2021-01,344,313,0.7,429,392,2.04 | ||
Add more to Git Bash on Windows,https://evanwill.github.io/_drafts/notes/gitbash-windows.html,2021-01,120,114,1.81,137,129,0 | ||
Go-Go GH-Pages home,https://evanwill.github.io/go-go-ghpages-b/,2021-01,187,122,1.88,190,125,1.15 | ||
"Setup Jupyter with Py 2, 3, and R",https://evanwill.github.io/_drafts/notes/dual-python-notebook.html,2021-02,608,501,1.78,693,571,2.25 | ||
Transfer iPhone to Linux,https://evanwill.github.io/_drafts/notes/iphone-transfer.html,2021-02,266,238,0.98,297,266,2.13 | ||
Add more to Git Bash on Windows,https://evanwill.github.io/_drafts/notes/gitbash-windows.html,2021-02,152,139,0.7,177,160,1.9 | ||
Go-Go GH-Pages home,https://evanwill.github.io/go-go-ghpages-b/,2021-02,93,67,1.34,107,78,1.63 |
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,90 @@ | ||
--- | ||
title: Compare Matomo to Google Analytics | ||
layout: post | ||
tags: [web] | ||
date: 2021-03-01 | ||
--- | ||
|
||
> this is a draft page to peek at the data. | ||
> I hope to add more data and better viz. | ||
Adding Google Analytics tracking code to your site has been standard practice for years to gather data about visitors. | ||
However, many people are more critically considering this practice--Analytics is "free" because you are giving your user's data/privacy away to Google in return. | ||
Luckily, there are a growing number of alternative options out there. | ||
|
||
One fairly easy to adopt option is [Matomo](https://matomo.org/), an open source analytics platform. | ||
It is available as a one-click install on many hosts. | ||
|
||
From Dec 2020 until Mar 2021 I had both Google Analytics and Matomo on some of my sites. | ||
This note compares the data from the two services. | ||
|
||
## Set Up | ||
|
||
At bottom of head section: | ||
|
||
- Matomo code came first loaded from a personal .org domain, self hosted on Reclaim. | ||
- Google Analytics loaded via analytics.js version. | ||
|
||
I collected the data for a set of top pages that have both analytics. | ||
|
||
## Pageviews | ||
|
||
{% assign pageviews = site.data.ga_v_ma_views %} | ||
{% assign toppages = pageviews | map: "title" | uniq %} | ||
| Page | Month | GA views | MA views | Difference | | ||
| --- | --- | --- | --- | --- | | ||
{% for p in pageviews %}| [{{ p.title }}]({{ p.link }}) | {{ p.date }} | {{ p.ga_pageviews }} | {{ p.ma_pageviews }} | {{ p.ga_pageviews | minus: p.ma_pageviews | times: 100 | divided_by: p.ga_pageviews }}% | | ||
{% endfor %} | ||
|
||
GA seems to consistently record more pageviews. | ||
|
||
In 2021-01 Google Analytics on sites across the world were hit by a spam spike from `bot-traffic.icu` (in my case, 5040 views in a day). | ||
Matomo did not record this traffic. | ||
Does Matomo do better at filtering out junk traffic? | ||
|
||
## Unique Pageviews | ||
|
||
| Page | Month | GA uniq views | MA uniq views | Difference | | ||
| --- | --- | --- | --- | --- | | ||
{% for p in pageviews %}| [{{ p.title }}]({{ p.link }}) | {{ p.date }} | {{ p.ga_uniqueviews }} | {{ p.ma_uniqueviews }} | {{ p.ga_uniqueviews | minus: p.ma_uniqueviews | times: 100 | divided_by: p.ga_uniqueviews }}% | | ||
{% endfor %} | ||
|
||
GA seems to consistently record more unique pageviews. | ||
|
||
## Average Load Time | ||
|
||
| Page | Month | GA average | MA average | Difference | | ||
| --- | --- | --- | --- | | ||
{% for p in pageviews %}| [{{ p.title }}]({{ p.link }}) | {{ p.date }} | {{ p.ga_avgloadtime }} | {{ p.ma_avgloadtime }} | {{ p.ga_avgloadtime | minus: p.ma_avgloadtime }} | | ||
{% endfor %} | ||
|
||
GA load times seem more random. | ||
Not sure why they would report "0" and then rather long load times. | ||
|
||
## Browser | ||
|
||
{% assign browsers = site.data.ga_v_ma_browser_os | where: 'type','browser' %} | ||
| Browser | GA User % | MA User % | Difference | | ||
| --- | --- | --- | --- | | ||
{% for b in browsers %}| {{ b.title }} | {{ b.ga_user_percentage }} | {{ b.ma_user_percentage }} | {{ b.ga_user_percentage | minus: b.ma_user_percentage }} | | ||
{% endfor %} | ||
|
||
Not including *other* browsers (so it doesn't add up to 100%). | ||
MA provides stats for desktop vs mobile browsers separately, so I added them together. | ||
|
||
## OS | ||
|
||
{% assign os = site.data.ga_v_ma_browser_os | where: 'type','os' %} | ||
| OS | GA User % | MA User % | Difference | | ||
| --- | --- | --- | --- | | ||
{% for o in os %}| {{ o.title }} | {{ o.ga_user_percentage }} | {{ o.ma_user_percentage }} | {{ o.ga_user_percentage | minus: o.ma_user_percentage }} | | ||
{% endfor %} | ||
|
||
The large differences here are interesting. | ||
Has MA classified some Android as Linux? | ||
Do Linux users block GA but not MA? | ||
|
||
## Other notes | ||
|
||
Overall, MA's interface is very nice and less confusing than GA. | ||
It is definitely a viable alternative. |