简体   繁体   中英

Tracking email opens with Amazon SES, SNS and SQS

I'm trying to track email opens through Amazon. I'm using Amazon SES to send out the emails.

I've followed the instructions: https://docs.aws.amazon.com/ses/latest/DeveloperGuide/event-publishing-add-event-destination-sns.html

I've created a queue in SQS and I've made an SNS topic with a subscription with SQS as protocol with the the SQS queue endpoint.

So, I've created a configuration set to track the Open and Click actions and set the destination to SNS. I've used Amazon SES Default Domain. I'm also adding the necessary header when sending the emails such that the configuration set is used.

My understanding is that Opens and Clicks should get back to the Amazon cloud, routed to the SNS configuration set -> caught by the SNS -> forwarded in the SQS queue.

In my emails I see a tracking image for Open events and links are changed for tracking Click events (both are something with awstrack.me....)

However, I don't get anything in the SQS queue. What am I doing wrong?

UPDATE: I found what I did wrong. I subscribed to the SQS queue from the SNS topic. The correct way is to subscribe from the SQS queue to the SNS topic (right click on the queue and click "Subscribe queue to SNS Topic")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM