How can I track how many people opened my newsletter?

If you want to know how many readers open your newsletter, you can add an image beacon (also called pixel tracking) to your email’s HTML and track email openings with Piwik PRO.

The image beacon is a 1-pixel-by-1-pixel transparent image that is pasted into the email’s HTML. When the image loads, Piwik PRO logs information about the visitor (your reader) and their session.

To track the email openings, follow these steps:

  1. This is the code you need to modify, to work for your website:
  2. <img style="border: 0;" src="https://example.piwik.pro/piwik.php?idsite=00000000-0000-0000-0000-000000000000&rec=1&bots=1&url=https%3A%2F%2Fexample.com%2Femail-opened%2Fnewsletter_XYZ&action_name=Email%20opened&_rcn=internal%20email%20name&_rck=newsletter_XYZ">
  3. https://example.piwik.pro: change to the name of your account.
  4. idsite=00000000-0000-0000-0000-000000000000: change to your website ID.
  5. In this line of code, you can change a few things:
  6. url=https%3A%2F%2Fexample.com%2Femail-opened%2Fnewsletter_XYZ&action_name=Email%20opened&_rcn=internal%20email%20name&_rck=newsletter_XYZ
    • This https%3A%2F%2Fexample.com%2Femail-opened%2Fnewsletter_XYZ is an encoded version of the page URL that you’ll see in reports after the email is opened. The decoded version looks like this: https://example.com/email-opened/newsletter_XYZ. You can change elements in this code so that it shows your domain and the proper name of your newsletter.
    • This action_name= is the name of tracked action. Again this Email%20opened is an encoded version of Email opened. You can change that to a different action name.
    • This _rcn= is the campaign name used in the campaign report. Again this internal%20email%20name is an encoded version of internal email name. You can change that to a different campaign name.
    • This _rck is the campaign keyword used in the campaign report. You can change this newsletter_XYZ to a different campaign keyword.
  7. Once you have the modified code, add it to the newsletter’s HTML.
  8. Now, when somebody opens your newsletter, you will see a new page titled Email opened in the page title report (Menu > Analytics (new) > Pages > Page titles)

In addition to tracking email openings, you can also track how many readers clicked on the links in the newsletter. For that, you’ll need to add campaign parameters to the destination URL. To learn more about tracking campaigns read one of the chapters in our guide Analytics for Beginners: “Tag a Campaign to See It in Reports

Was this article helpful?

Be the first to rate this article.

Technical Support

If you have any questions, drop us a line at support_SPC@piwik_SPC.pro.

We’re happy to help!