Create, send & track email with Mandrill
Introduction to tracking

The awesome thing about sending email through Mandrill is that you can easily get information about the emails you've sent, and we'll automatically track stats over time based on the sender address, template, and any tags you add to the message.

In the last series of exercises, you sent number of emails, so let's see how much email you've sent over the last 7 days.


You can use the users/info.json API call to see how much email you've sent in the last day, 7 days, 30 days, 60 days, 90 days, and all time. The example code will get the total number of emails sent and the number of opens for those emails for the last 7 days.

Make sure to include your API key on line 11.

Try changing lines 6 and 7 to get the number of emails sent and opens in the last day (hint: the key for the last day is today instead of last_7_days).

View Preview