query-poc
Once we have the SES events stored with the message_id as a primary key we can join it to our internal data on the same message_id key. That allows us to meet requirements by merging exising internal data with the SES events data.
To create the proof of concept we'll generate some email data, and some sample internal data and show how thr requirement will be met.
Generate SES data
This data is generated using real data records from AWS templated so that we can change names, addresses and achieve some scenarios that we want to validate. A sample of that data is in the "Details" drop-down below:
Generate internal data set
We use the identities generated above to create some mock internal data that contains a "region" field. Our internal data has many more columns but we just need one to prove the concept.
a sample record
Pivot the ses data
Summarize by region
We can now use this to join to our internal (fake) data and the ses records to summarize over any column and across any cohort. In this simple example we are grouping by region for the total cohort (all classes, all times)
Create a "journey" detail
Our other requirement is to be able to trace the "journey" of a specific email including all the events it passed through in getting to the customer. Here's an example of that kind of application.
With this query we select all the recipients who opened our email but did not click on any of our embedded links.
Last updated