]> BookStack Code Mirror - website/blob - content/blog/replacing-ga-and-mailchimp.md
Small typo fixes: "it's" vs "its"
[website] / content / blog / replacing-ga-and-mailchimp.md
1 +++
2 title = "Replacing Google Analytics & Mailchimp"
3 date = 2021-01-05T18:44:52Z
4 categories = ["News"]
5 tags = ["News"]
6 author = "Dan Brown"
7 image = "/images/blog-cover-images/penguin-steffen-triekel.jpg"
8 draft = false
9 +++
10
11 On this BookStack site I have been using Google Analytics to track visitor metrics.
12 While not crucial to know, it's generally useful to have an idea of the target audience, current popularity and
13 be aware of any visitor spikes. For the email updates and email security alerts I've been
14 using Mailchimp. This post explains the move to more privacy aware alternatives.
15
16
17 ### Google Analytics to Plausible
18
19 BookStack, being an open source self-hostable platform, will have an audience that's generally quite privacy aware.
20 Google is generally seen as an ever-growing threat to privacy on the internet. 
21 Google Analytics, as a service to track website visitor metrics, is very popular and well used since it's available
22 without paying and provides a very good amount of data hence was my choice for this site until now but I've 
23 had a growing unease sending visitor's details to Google without their consent. I did use it without cookie
24 usage while choosing to anonymise IP addresses but it would still effectively contribute to Google's 
25 own data usage which may be misaligned with the wishes of visitors.
26
27 As an alternative, I've set-up a self-hosted instance of [Plausible](https://plausible.io/). 
28 I was initially put off with its simplicity, compared to Google Analytics; I mean it has way fewer menus, graphs,
29 pages and options so it must be inferior right? But I thought about the questions I want answered from such a service:
30
31 * How many visitors are on my site?
32 * How many visitors have been on my site?
33 * Where have they come from?
34 * What pages are being viewed?
35 * What country are they visiting from?
36 * What kind of devices are being used?
37 * When does a traffic spike occur?
38
39 Plausible answers all of these, and it does so directly, in an easy and beautiful UI.
40 Its simplicity actually makes it better for the questions I need answered since I no longer
41 need to navigate through the slow, confusing interface that Google Analytics presents.
42 It's all just there in a single view.
43
44 ![Plausible BookStack Site Analytics](/images/2021/01/plausible_bookstack_site_analytics.png)
45
46 Plausible offer paid, hosted plans but I've chosen to self-host the service to keep costs minimal and so that my visitor's data
47 is not held by a third-party. That said, I still want to support the project which can be done as a self-hoster via 
48 their [GitHub sponsors page](https://github.com/sponsors/plausible). Setup was a straight-forward process using their docker
49 configuration and it's been stable so far. I ran it alongside Google Analytics for a few days to check if figures aligned. 
50 The numbers were slightly higher (~5 to 10% or so) on the Plausible side which I'd guess may be down to visitors blocking
51 Google scripts/domains.
52
53 One of my favourite features of Plausible is that it's really easy to make the dashboard public which is something
54 I've often wanted to do with Google Analytics in the interest of transparency. The BookStack dashboard can be 
55 seen at https://analytics.bookstackapp.com/bookstackapp.com.
56
57 ### Mailchimp to MailBag
58
59 As mentioned in the intro, I've been using Mailchimp to send newsletter updates and security alerts.
60 To be honest, It's worked fairly well; Their interface is generally pleasant, it was cost-free for my usage,
61 it sent the emails without issue. That said, there were two things I was not a fan of:
62
63 1. It's another entity that registrants would have to trust in addition to myself/BookStack.
64 2. They added link tracking even when choosing to disable it.
65
66 The second point really irked me, especially since you could choose to disable it during campaign setup.
67 To be fair, I did not raise it with them but based on this line from their [support page](https://mailchimp.com/help/troubleshooting-click-tracking/):
68
69 > We encourage you to leave click tracking on. However, you can disable click tracking in paid accounts after you've sent a few campaigns without any compliance issues.
70
71 It appears that user privacy may be a paid feature. 
72
73 This tracking was particularly unappealing on our plaintext security updates.
74 It's not obvious at all where the links actually lead to:
75
76 ![Mailchimp Tracked Links Example](/images/2021/01/mailchimp_tracked_links.png)
77
78 When looking around for alternatives, I found lots of great options including:
79
80 - [Mailcoach](https://mailcoach.app/)
81 - [phpList](https://www.phplist.com/)
82 - [listmonk](https://listmonk.app/)
83 - [Mautic](https://www.mautic.org/)
84
85 Unfortunately though many of these lacked an auto-RSS-send feature and/or appeared too complex
86 for the focused use-case I had in mind so, with some extra Christmas holiday time, I put together
87 my own app which I've called [MailBag](https://github.com/ssddanbrown/mailbag).
88
89 ![MailBag Home Dashboard ScreenShot](/images/2021/01/mailbag.png)
90
91 This is a purposefully very simple app and has lots of limitations, as listed in the [readme](https://github.com/ssddanbrown/mailbag#mailbag),
92 but it does what I need it to while providing me an opportunity to work on something
93 fresh for a change to sharpen some development skills.
94 There is no open/click tracking support; No HTML email support.
95
96 Over the next month or so I'll be migrating the existing contact lists from Mailchimp. I'll send out emails to existing
97 subscribers as a advisory and to provide an opportunity to opt-out of the migration beforehand. The subscribe links, found
98 at the bottom of all posts here, have been updated to the MailBag instance since I'll be running both systems side-by-side for a while.
99
100 ----
101
102 <span style="font-size: 0.9em;opacity:0.9;">Header Image Credits: <span>Photo by <a href="https://unsplash.com/@okinapansa?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Steffen Triekels</a> on <a href="https://unsplash.com/t/animals?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></span></span>