SendGrid is an email infrastructure platform that lets you easily send transactional and marketing emails. Together with SendGrid we built an integration that allows you to receive all events that happen within an email, such as: Delivered, Opens, Clicks, Marked as Spam and lots more!

Using Keen and SendGrid’s Email Analytics app, you can quickly and easily view email reports, run custom analysis, and permanently store all of your email event information.

Send your SendGrid Data to Keen

Step 1: Create a Keen and SendGrid account

Step 2: Activate SendGrid’s Event Notification App

Log into your SendGrid account, click on Settings from the left menu → Select Mail Settings. Then click on “Event Notification”.

Step 3: Set the HTTP POST URL (example below) as the endpoint where SendGrid will stream all of your email data.

https://api.keen.io/3.0/projects/YOUR_KEEN_PROJECT_ID/email/sendgrid/1.0?api_key=YOUR_KEEN_API_WRITE_KEY

You can snag a prebuilt URL in Keen’s UI or make your own.

In the settings, select the events you want to post to Keen (why not all of them?). To do this, check “All” under the “Select Actions”.

That’s it! Now, as your emails make their way through SendGrid, all of the event information will be posted to Keen. A new Event Collection, aptly named for each type of email event, will be created within your Keen Project.

Test Your Integration

Test that everything is working by clicking on the “Test Your Integration” button in SendGrid’s “Event Notification” Settings. This will send sample email data from SendGrid into your Keen Project. In the Keen UI, click on “Check for SendGrid Data” button.

Your SendGrid email data should now be populated in Keen.

SendGrid Email Analytics: How to Guide

Once you have data successfully flowing from SendGrid to Keen, a new application called SendGrid Email Analytics will appear on your projects page’s “Apps” tab.

To find it, visit your Keen home screen, select the project you’ve connected, in and click on the “Apps” tab. Find SendGrid and select “Launch App.” If you’ve successfully sent SendGrid data to Keen for storage, you will see the dashboard below.

Wait, there's more!

You can find out how to Add a Segment, use Custom Attributes, Analyze Different Time Periods, Download Email Addresses to CSV, and much more in the full SendGrid Integration Docs.

Did this answer your question?