# Tracking user activity via email

**URL:** https://meta.discourse.org/t/tracking-user-activity-via-email/56428
**Category:** Feature
**Created:** [January 26, 2017, 11:00pm UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428 "2017-01-26T23:00:46Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![Ian\_R](https://avatars.discourse-cdn.com/v4/letter/i/9dc877/32.png) [@Ian\_R](https://meta.discourse.org/u/Ian_R)
#### Post date: [January 26, 2017, 11:00pm UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/1 "2017-01-26T23:00:46Z")

</div>

Many of our members never visit the website and simply use the email digests. As a result we get zero metrics on who has actually read a post via email.

Is is possible to add a feature that uses a tracking pixel in emails that is tracked through the admin interface so we can get a better insight into user activity.

Thanks,

Ian  
forum.mitie.edu.au

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [January 27, 2017, 6:00am UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/2 "2017-01-27T06:00:09Z")

</div>

Not a bad idea! But I don’t know if it will find traction here.

Personally, I use [mandrillapp.com](http://mandrillapp.com) for transactional email and like to use that to keep an eye on who’s opening and clicking links. But it’s not integrated in discourse activity tracking at all.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [March 14, 2017, 4:34pm UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/3 "2017-03-14T16:34:55Z")

</div>

I’ve changed my mind, based on what @erlend_sh wrote in [another topic](https://meta.discourse.org/t/apply-mailing-list-mode-per-category/47772/11).

Erlend’s idea, if I understand it correctly, adds on to yours by treating reading posts and messages by email the same way as reading posts and messages by web interface. So members would not see gazillions of notifications when logging in after a long period of using mailing list mode. They would also be taken to the correct spot in discussions based on what they’ve already seen by email.

Don’t know if this can be pulled off, but I like it.

Also, as I wrote there:

> [@Apply "mailing list mode" per category](https://meta.discourse.org/t/apply-mailing-list-mode-per-category/47772/12):
>
> I 😻 this idea in a big way. One of our biggest challenges is empowering people in the community to know when other people have read their post. They also get massively overwhelmed arriving in the forum after a few month or years of mailing list mode to discover hundreds of notifications and don’t know where to start reading.

---

<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: [March 14, 2017, 7:20pm UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/4 "2017-03-14T19:20:04Z")

</div>

It is not really possible to reliably track email “opens”. So it is dangerous to pin your hopes on this.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [March 28, 2017, 11:08pm UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/5 "2017-03-28T23:08:21Z")

</div>

Using Discourse as a mailing list is already a power-user type feature, so it’s fair to expect site owners to provide their users with some extra educational material on best practices.

Here’s some docs from Mailchimp:

> **[Use Open Tracking in Emails | Mailchimp](https://mailchimp.com/help/about-open-tracking/)**
>
> Open tracking lets you see if your contacts have opened your sent email campaigns. Learn how we track opens and how to view open results.

> ### My open rates seem high.
> 
> Here are some common issues that can cause your open rates to be too high.
> 
> #### A spam filter is causing high open rates.
> 
> Aggressive spam filters will click links in incoming mail before delivering them to make sure there isn’t any malicious content. Our system automatically tracks clicks as opens, and we have no way of differentiating when a click is from a spam filter. This can sometimes lead to an unusually high number of opens from a single domain. If you notice this on your report, it’s likely the result of a spam filter. We recommend you ask your subscribers to [whitelist MailChimp’s servers](http://kb.mailchimp.com/delivery/deliverability-research/about-company-whitelisting).
> 
> #### Your subscriber forwarded your email.
> 
> When your subscribers forward emails through their email client, any opens for the forwarded email are recorded as additional opens for your subscriber. Encourage subscribers to use the [Forward to a Friend link](http://kb.mailchimp.com/campaigns/design/add-the-forward-to-a-friend-link) instead to accurately track your opens.

> **[How to Allowlist Delivery IP Addresses | Mailchimp](https://mailchimp.com/help/about-company-allowlisting/)**
>
> Learn how to enable company allowlisting to help ensure your Mailchimp campaigns get to all your subscribers.

> Private email domains tend to have more aggressive firewalls and spam filters than Gmail or other free webmail providers. Sometimes, these network firewalls and filters can block your campaigns.
> 
> If subscribers from a certain company or private email domain have trouble receiving your MailChimp campaigns, ask them to whitelist MailChimp as a possible solution.
> 
> In this article, you’ll learn about whitelisting.

Maybe it’s too niche for core, but I’m sure a lot of email-centric communities would love to have this as a plugin.

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [March 29, 2017, 11:00am UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/6 "2017-03-29T11:00:21Z")

</div>

What about this instead?

> [@Apply "mailing list mode" per category](https://meta.discourse.org/t/apply-mailing-list-mode-per-category/47772/19):
>
> I could see a preference (default on?) that says:
> 
> clear notifications that I’ve already been emailed about
> 
> This avoids the email tracking complexity while setting clear expectations.

---

<div class="post-metadata">

### Author: ![moesmiol1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moesmiol1/32/87761_2.png) [@moesmiol1](https://meta.discourse.org/u/moesmiol1)
#### Post date: [March 26, 2018, 11:34pm UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/7 "2018-03-26T23:34:09Z")

</div>

Is there somewhere within Discourse to pull the open and click rates of our digest emails? Or does it have to be hooked up to a third party to pull those numbers? Is it possible for Discourse to pull and send that data to our admins?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 27, 2018, 1:36am UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/8 "2018-03-27T01:36:43Z")

</div>

> [@moesmiol1](#):
>
> Or does it have to be hooked up to a third party to pull those numbers?

At the moment there is nothing built into Discourse. The general practice is to:

1. Include a “hidden” gif in all emails and use it for tracking, but unfortunately even that has a bunch of false positives cause programs like gmail will preemptively cache images.

2. Re-wrap all links with a special “tracking” param so you can see who clicked on what link.

I can see us potentially addressing (2) so you can figure out who clicks on which links. But am a bit uneasy about (1).

---

<div class="post-metadata">

### Author: ![moesmiol1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moesmiol1/32/87761_2.png) [@moesmiol1](https://meta.discourse.org/u/moesmiol1)
#### Post date: [March 27, 2018, 6:07pm UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/9 "2018-03-27T18:07:27Z")

</div>

Thanks Sam! Does Discourse track that information on the backend at all? Or do you know the average open and click rates for digest emails?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [March 27, 2018, 7:25pm UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/10 "2018-03-27T19:25:40Z")

</div>

Does your email service not provide a dashboard with open, bounce, etc. stats ?

---

<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 27, 2018, 8:06pm UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/11 "2018-03-27T20:06:46Z")

</div>

Digests are sent via us for hosted customers.

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [March 27, 2018, 9:53pm UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/12 "2018-03-27T21:53:37Z")

</div>

> [@sam](#):
>
> Re-wrap all links with a special “tracking” param so you can see who clicked on what link.

I have had massive problems with this in a CRM software when the links original url is shown in the email because the re-wrapped url will look like a phishing attempt.

So changing [The Discourse website](http://www.discourse.org) to [The Discourse website](http://linktracker.tld/www.discourse.org) works fine, but changing [http://www.discourse.org](http://www.discourse.org) to [http://www.discourse.org](http://linktracker.tld/www.discourse.org) will be eaten up by spam filters (note the underlying urls in these links).

---

<div class="post-metadata">

### Author: ![ArcticF0xx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arcticf0xx/32/179374_2.png) [@ArcticF0xx](https://meta.discourse.org/u/ArcticF0xx)
#### Post date: [October 23, 2020, 6:27pm UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/13 "2020-10-23T18:27:55Z")

</div>

Hi guys, looks like this thread is over two years old, so following up. I’m wondering if we’re still unable to track send size, open rate, and click through rate for Discourse emails?

---

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [October 23, 2020, 7:29pm UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/14 "2020-10-23T19:29:49Z")

</div>

Correct - this is not built in.

> [@codinghorror](#):
>
> It is not really possible to reliably track email “opens”. So it is dangerous to pin your hopes on this.

Jeff’s post is still highly relevant.

---

<div class="post-metadata">

### Author: ![ArcticF0xx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arcticf0xx/32/179374_2.png) [@ArcticF0xx](https://meta.discourse.org/u/ArcticF0xx)
#### Post date: [October 23, 2020, 7:31pm UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/15 "2020-10-23T19:31:13Z")

</div>

Great. Thanks for confirming @justin 🙂

---

<div class="post-metadata">

### Author: ![zcuric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zcuric/32/292837_2.png) [@zcuric](https://meta.discourse.org/u/zcuric)
#### Post date: [December 9, 2020, 1:27pm UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/16 "2020-12-09T13:27:50Z")

</div>

What could be done, perhaps, is to add Google Analytics into email template:

> **[Google Analytics  |  Google for Developers](https://developers.google.com/analytics/legacy/universal-analytics)**

EDIT:  
This works, for tracking email opening at least.

---

<div class="post-metadata">

### Author: ![AshleyTH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ashleyth/32/246050_2.png) [@AshleyTH](https://meta.discourse.org/u/AshleyTH)
#### Post date: [January 12, 2022, 12:24pm UTC](https://meta.discourse.org/t/tracking-user-activity-via-email/56428/17 "2022-01-12T12:24:28Z")

</div>

Hello! Got a bit of a puzzle happening with setting up GA4 tracking on notification emails.

I’ve tried appending the tracking code to the end of keys sent via email (i.e. %{invite\_link}), but Google doesn’t seem to like tracking the source, medium or campaign that I add. I used the Google Campaign URL Builder just to be sure I had everything right, but still no joy.

The resulting link looks like this: URL/invites/sQFAD7aZmE?t=NUMBERNUMBER&utm\_source=forum\_email&utm\_medium=email&utm\_campaign=forum\_notifications

The traffic shows up in GA as (direct)/(none) when I look for the source/medium. Any ideas?

(I’ve tried cache clearing, using a different browser/computer, etc)
