Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a FAQ about tracking Internal newsletters #11566

Closed
maxibwoy opened this issue Mar 30, 2017 · 3 comments
Closed

Create a FAQ about tracking Internal newsletters #11566

maxibwoy opened this issue Mar 30, 2017 · 3 comments
Labels
c: Website matomo.org For issues related to our matomo.org website.
Milestone

Comments

@maxibwoy
Copy link

Hi,

My team regularly sends out emails internally using html templates.

Could Piwik be used to track email open rates and click-through rates of the links in the emails?

There wouldn’t be a main website we drive internal recipients to, just weekly email newsletters with links to various internal/external resources. So I'm not sure where Piwik should be installed.

We’re currently just using a white-pixel with a bit.ly url embedded in the template but it’s not the best solution, so I'm keen to find out if I could use Piwik for better and more in-depth tracking.

Thank you,
Massimo

https://forum.piwik.org/t/internal-newsletters/23632

@RMastop
Copy link
Contributor

RMastop commented Mar 30, 2017

Hi @maxibwoy,

I have implemented the following example:

<img src="https://example.com/piwik/piwik.php?idsite=99999&rec=1&url=https%3A%2F%2Fexample.com%2Femailopened%2Finternal_email_name&bots=1&action_name=Email%20opened&_rcn=internal%20email%20name&e_c=internal%20email%20name&e_n=emailname&e_a=email%20opened" style="border:0;” alt="" />

This is a simple version that tracks the following items in Piwik:

&url=https%3A%2F%2Fexample.com%2Femailopened%2Finternal_email_name
sets Page URL to "/emailopened/internal_email_name"

&action_name=Email%20opened
sets Page Name to "Email opened"

&_rcn=internal%20email%20name
sets campaign to "internal email name" )

&e_c=internal%20email%20name
sets event category to "internal email name" )

&e_n=emailname
sets event name to "internal email name" )

&e_a=email%20opened
sets event action to "internal email name" )

More options, like tracking Custom Dimension, uid (to set the User ID in case of cross-device tracking for personalised emails ) can be found here:
Tracking HTTP API: API Reference - Piwik Analytics - Developer Docs - v3

Cheers,
Richard

@mattab mattab changed the title Internal newsletters Create a FAQ about tracking Internal newsletters May 8, 2017
@mattab mattab added this to the Priority Backlog (Help wanted) milestone May 8, 2017
@mattab mattab added the c: Website matomo.org For issues related to our matomo.org website. label May 8, 2017
@maxibwoy
Copy link
Author

maxibwoy commented Sep 6, 2017

Hi, thanks very much @RMastop for this very useful tip.

I've tried testing it and it's tracking well but I have a couple of questions:

  • Does it only work for desktop? I tried opening the email on mobile and it doesn't seem to be tracking.
  • Does it only track the first time? I tried opening the email multiple times on desktop but it only tracked once.

Thanks.

@mattab
Copy link
Member

mattab commented Nov 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Website matomo.org For issues related to our matomo.org website.
Projects
None yet
Development

No branches or pull requests

3 participants