# Protect user privacy by using Matomo, dumping Google Analytics?

**URL:** https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837
**Category:** Data & reporting
**Tags:** analytics
**Created:** [September 10, 2018, 8:50am UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837 "2018-09-10T08:50:58Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![Bretty](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@Bretty](https://meta.discourse.org/u/Bretty)
#### Post date: [September 10, 2018, 8:50am UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/1 "2018-09-10T08:50:58Z")

</div>

Hi,

I’ve been becoming familiar with the discourse community. I am considering setting up discourse for two completely different communities. I have slowly become familiar with it on other sites like letsencrypt.

I was disappointed that my tracker-blockers reported discourse is using [google-analytics.com](http://google-analytics.com)

Of course, I’m protected from that intrusiveness because I use a blocker, but not everyone will be. And not everyone wants to end up in a Google database, even if it claims that tracking data won’t leak into other divisions.

> **[Privacy-first analytics you can trust - Analytics Platform - Matomo](https://matomo.org)**
>
> Popular analytics tools can miss up to 40% of traffic. Matomo delivers accurate, GDPR-compliant analytics with full data ownership in a platform teams can set up in minutes.

Has discourse never considered using f/loss Matomo (formerly Piwik)  
instead of Google Analytics? Nothing came up in a search on any of these analytics before I posted this question. Matomo is a pretty decent product these days.

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [September 10, 2018, 9:13am UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/2 "2018-09-10T09:13:10Z")

</div>

> [@Matomo Analytics](https://meta.discourse.org/t/how-to-enable-matomo-analytics-on-discourse/33090):
>
> discourse2Summary Matomo Analytics is a script to enable Matomo analytics on Discourse.hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-matomo-analytics](https://github.com/discourse/discourse-matomo-analytics)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Features [Matomo](https://matomo.org/) is an open source analytics platform. Users can choose between self-hosting or paying for professional hosting in the cloud. mega Matomo was formerly named Piwik. S…

---

<div class="post-metadata">

### Author: ![Bretty](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@Bretty](https://meta.discourse.org/u/Bretty)
#### Post date: [September 10, 2018, 5:44pm UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/3 "2018-09-10T17:44:05Z")

</div>

Hi Michael, thanks for sharing this helpful post. I will again refer to it after I get my own discourse up and running.

What I was asking (sorry if I was not clear) is why discourse itself does not use Matomo on [disccourse.org](http://disccourse.org) itself, instead of google analytics. That is why I asked this question in meta. Otherwise I suppose I should have asked in support or somewhere else? This is my first post so perhaps I asked in the wrong category?

It would be preferable, at least to me, to use open source GPL’d software on [discourse.org](http://discourse.org), and to take this additional step to protect the privacy of users by not involving google.

Maybe I am wrong but it seems that many who would want to use discourse for their own communities also do not want to involve google collecting data on all their users, and [discourse.org](http://discourse.org) should be aligned with that.

Additionally, the quality of the analytics might improve, as google analytics is likely blocked more than Piwik/Matomo.

I have used Piwik/Matomo for 5 years on sites that I operate.

---

<div class="post-metadata">

### Author: ![Sevosik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sevosik/32/80703_2.png) [@Sevosik](https://meta.discourse.org/u/Sevosik)
#### Post date: [September 10, 2018, 6:33pm UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/4 "2018-09-10T18:33:07Z")

</div>

> [@Bretty](#):
>
> why discourse itself does not use Matomo on [disccourse.org](http://disccourse.org) itself

Matomo is based on PHP, which means you’d have to prepare the environment and then care about this. Also, more people use Google Analitycs instead of Matomo. Discourse already has its statistics.

---

<div class="post-metadata">

### Author: ![Bretty](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@Bretty](https://meta.discourse.org/u/Bretty)
#### Post date: [September 10, 2018, 9:12pm UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/5 "2018-09-10T21:12:17Z")

</div>

Responses so far are **not** to the question I asked. 😧  
One non-response even received 6 likes.

I am disappointed after posting my first question here.  
“Does your reply improve the conversation in some way?” is missing here.

Perhaps nobody wants to answer my actual question, or I have posted in the wrong forum.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 10, 2018, 9:14pm UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/6 "2018-09-10T21:14:49Z")

</div>

Perhaps not as many people care about this issue as you do?

That does not mean you are wrong in any way, it just means that other people may not necessarily share your concerns or goals.

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [September 10, 2018, 9:16pm UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/7 "2018-09-10T21:16:34Z")

</div>

> [@Bretty](#):
>
> One non-response even received 6 likes.

Maybe more people misunderstood your question…

---

<div class="post-metadata">

### Author: ![Bretty](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@Bretty](https://meta.discourse.org/u/Bretty)
#### Post date: [September 10, 2018, 9:22pm UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/8 "2018-09-10T21:22:48Z")

</div>

> [@codinghorror](#):
>
> it just means that other people may not necessarily share your concerns or goals.

Perhaps. Anyway, the wonderful thing about discourse is that it is very configurable open source software and so none of us have to use it identically. I won’t have to take privacy away from my users. And I appreciate @michaeld for pointing out the howto. cheers.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 10, 2018, 9:27pm UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/9 "2018-09-10T21:27:51Z")

</div>

Exactly, and it’s not like Google Analytics is forced on anyone.. certainly not by Discourse.

---

<div class="post-metadata">

### Author: ![Bretty](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@Bretty](https://meta.discourse.org/u/Bretty)
#### Post date: [September 11, 2018, 5:10am UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/10 "2018-09-11T05:10:36Z")

</div>

@codinghorror, I’m not sure you understood my question?

Of course anyone who installs discourse is free not to activate g-a.  
But google analytics is forced on everyone who does not actively defend against it **on this website, [discourse.org](http://discourse.org)** That was my concern as a new user and why I posted in meta, not support or suggestions.

And perhaps g-a’s not even that valuable, because discourse itself tracks a lot more about site users activity.

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [September 11, 2018, 5:17am UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/11 "2018-09-11T05:17:39Z")

</div>

I suspect you’re right. I didn’t understand either until your latest post.

> [@codinghorror](#):
>
> Perhaps not as many people care about this issue as you do?

This probably still applies. Many people don’t care (me for instance) and those that do are free to protect themselves as you have.

I don’t know enough about the comparative pros and cons of Matamo vs. GA. Do you know of any good articles? GA is a pretty fundamental tool for a huge portion of our customer base, many don’t have the choice, so we won’t remove it but I guess we could potentially add another option if enough people would like it.

---

<div class="post-metadata">

### Author: ![Bretty](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@Bretty](https://meta.discourse.org/u/Bretty)
#### Post date: [March 12, 2019, 5:04pm UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/12 "2019-03-12T17:04:58Z")

</div>

> [@Sevosik](#):
>
> more people use

I’m don’t understand why this is a valid reason?

A lot more people use Facebook than Discourse forums. Why bother with Discourse?

---

<div class="post-metadata">

### Author: ![Bretty](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@Bretty](https://meta.discourse.org/u/Bretty)
#### Post date: [March 12, 2019, 6:08pm UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/13 "2019-03-12T18:08:03Z")

</div>

> [@HAWK](#):
>
> I don’t know enough about the comparative pros and cons of Matamo vs. GA. Do you know of any good articles? GA is a pretty fundamental tool for a huge portion of our customer base, many don’t have the choice, so we won’t remove it but I guess we could potentially add another option if enough people would like it.

Hi! Coincidentally I just came across this older Discourse post of mine yesterday and a good comparison of Matomo vs GA at about the same time. (I didn’t find an answer to your question that I was happy with when you first asked and I originally looked.)

> _“The difference between cloud hosting Matomo Analytics vs Google Analytics is that when you choose Matomo, we acknowledge you own the data and we have no right to access it. This means we can’t on-sell it to third-parties, we can’t claim ownership of it, you can export your data at anytime (how awesome is that!) and you can migrate between cloud hosting and hosting on-premise for ultimate flexibility whenever you want.”_
> 
> [Why Matomo is a serious alternative to Google Analytics 360](https://matomo.org/blog/2018/12/why-matomo-is-a-serious-alternative-to-google-analytics-360/#more-30938)

And a comparison table: [Learn about the differences between Matomo Analytics vs Google Analytics 360](https://matomo.org/matomo-vs-google-analytics-comparison/)

> GA is a pretty fundamental tool for a huge portion of our customer base, many don’t have the choice, so we won’t remove

I’m not sure where this extreme suggestion to remove it comes from!

> a huge portion of our customer base, many don’t have the choice

I’d like to point out that Discourse itself isn’t offering analytics choice yet. Discourse is biased toward one [analytics supplier](https://www.discourse.org/integrations#analytics), somewhat unpopular for its privacy-practices. Why is this necessary or even desirable?

I’d also like to respond to a previous post that suggested Matomo was a problem because it was written in php.

Websites interface with Google Analytics via Javascript tracking code. They can do so identically with javascript and a Matomo hosted solution: either that offered by Matomo, or their own instance of Matomo on their own server. See [Matomo javascript](https://developer.matomo.org/guides/tracking-javascript-guide)

Discourse has no problem clearly declaring various php-based software on [this page](https://www.discourse.org/) is integrated. So why raise php as a barrier for offering a choice for Discourse users to use open-source analytics?

Also, here’s an important reason self-hosted Matomo on your own server is beneficial. Google Analytics javascript is now widely blocked by anti-tracking browser plugins. Because Matomo is just js on your own website, you can easily configure it so it won’t be blocked and you get reliable analytics.

Can the way that GA code is inserted simply be generalized? I am thinking this could be as simple as a text box that is initialized with GA code that could be replaced, so that the user can simply supply the javascript analytics tracking code they want - be it Matomo or any other analytics software? Discourse seems to be wonderfully configurable in so many ways. User-definition of analytics javascript seems like a straight forward flexibility extension.

I would suggest that Matomo support should be added to Discourse as it is also open source software, not part of a monopoly trying to control the internet. Matomo allows a great deal of user customization and total control of data as Discourse does. Discourse should add support for Matomo because doing so supports the greater community of open source software, and user control of data. Discourse should add support for Matomo on greater principles.

I’m no ruby coder but I may take a stab at this if nobody else does, as it doesn’t seem to be a big project.

cheers,  
Brett

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [March 12, 2019, 7:10pm UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/14 "2019-03-12T19:10:47Z")

</div>

> [@Bretty](#):
>
> I’m not sure where this extreme suggestion to remove it comes from!

The title, which says “dumping GA” 🙂

> [@Bretty](#):
>
> I’m no ruby coder but I may take a stab at this if nobody else does, as it doesn’t seem to be a big project.

Cool. Our roadmap is driven by a combination of demand and customer requests. So far there hasn’t really been either. Definitely not disregarding your arguments, but taking a stab at this yourself is going to be the quickest way forward here.

---

<div class="post-metadata">

### Author: ![Bretty](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@Bretty](https://meta.discourse.org/u/Bretty)
#### Post date: [March 12, 2019, 7:21pm UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/15 "2019-03-12T19:21:16Z")

</div>

> [@HAWK](#):
>
> > [@Bretty](#):
> >
> > I’m not sure where this extreme suggestion to remove it comes from!
> 
> The title, which says “dumping GA” 🙂
> 
> 😧 Duh. I noticed that after but I couldn’t find this post again to correct myself.
> 
> (I am not finding the ‘obvious’ way in Discourse to retrieve with my past posts/threads. I did it using search options once, but is there something I am staring at and missing? What am I missing? Thankfully I got a Firefox alert now to your reply (cool - first time!), so was able to get back here. Thanks.)
> 
> > [@Bretty](#):
> >
> > I’m no ruby coder but I may take a stab at this if nobody else does, as it doesn’t seem to be a big project.
> 
> Cool. Our roadmap is driven by a combination of demand and customer requests. So far there hasn’t really been either. Definitely not disregarding your arguments, but taking a stab at this yourself is going to be the quickest way forward here.

Fair enuf. If **I** can’t be bothered as a starting point…

It’s a good excuse to learn something new. 😄

Brett

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [March 12, 2019, 7:23pm UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/16 "2019-03-12T19:23:15Z")

</div>

> [@Bretty](#):
>
> (I am not finding the ‘obvious’ way in Discourse to retrieve with my past posts/threads. I did it using search options once, but is there something I am staring at and missing? What am I missing? Thankfully I got a Firefox alert now to your reply (cool - first time!), so was able to get back here. Thanks.)

If you go to [your activity summary](https://meta.discourse.org/u/bretty/activity) (accessed under your avatar dropdown) you’ll find everything you ever did here. 🙂

---

<div class="post-metadata">

### Author: ![Bretty](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@Bretty](https://meta.discourse.org/u/Bretty)
#### Post date: [March 12, 2019, 7:42pm UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/17 "2019-03-12T19:42:07Z")

</div>

> [@HAWK](#):
>
> If you go to [your activity summary](https://meta.discourse.org/u/bretty/activity) (accessed under your avatar dropdown) you’ll find everything you ever did here. 🙂

Thank you for this link!

I do not think this activity summary is totally clear though. I looked at this an hour ago and I misinterpreted it. There is no title for the items, which seem to be posts by other people e.g. your response here, without a relationship. It wasn’t obvious what the relationship was to **my** activity. It was just a bit confusing, to be honest. A brief title of what the items are would be helpful IMHO.

I’m sure discobot taught me this many months ago and I forgot… 😁

---

<div class="post-metadata">

### Author: ![asirota](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/asirota/32/197298_2.png) [@asirota](https://meta.discourse.org/u/asirota)
#### Post date: [November 20, 2020, 11:19am UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/18 "2020-11-20T11:19:25Z")

</div>

Has the rapid evolution of Google Analytics with v4 changed your mind at all? Specifically Google’s analytics product is capable of doing a ton more than it used to. Moving away from sessions towards events is a big deal.

Have you made any progress here?

---

<div class="post-metadata">

### Author: ![Vanecx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vanecx/32/166111_2.png) [@Vanecx](https://meta.discourse.org/u/Vanecx)
#### Post date: [January 13, 2022, 12:22pm UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837/19 "2022-01-13T12:22:09Z")

</div>

This could be repeated in many different discussion threads about Google Analytics, but I’ll put it here at least:

[https://www.euractiv.com/section/politics/short\_news/use-of-google-analytics-violates-eu-law-austrian-authority-rules/](https://www.euractiv.com/section/politics/short_news/use-of-google-analytics-violates-eu-law-austrian-authority-rules/)

European users have a right to privacy, which is not compatible with discourse instances using GA. Fortunately, it seems that [discourse.org](http://discourse.org) doesn’t use GA (anymore?) so it’s at least ok here. But all of us hosting Discourse instance in EU and/or with European users should remove GA asap.

Same info, in French: [https://www.euractiv.fr/section/lactu-en-capitales/news/lutilisation-de-google-analytics-viole-le-droit-europeen-selon-lautorite-autrichienne-de-protection-des-donnees/](https://www.euractiv.fr/section/lactu-en-capitales/news/lutilisation-de-google-analytics-viole-le-droit-europeen-selon-lautorite-autrichienne-de-protection-des-donnees/)

(taking as much distance as possible from Google is a healthy choice anyway, no matter how popular their tools are, unless you want to have to justify yourself someday to a Data Protection Controller)
