2018年6月14日 星期四

[aws]如何使用 Amazone SES 追蹤 送達率 開信率 點擊率 到 Cloudwatch


如何使用 Amazone SES 追蹤 送達率 開信率 點擊率 到 Cloudwatch 呢?
先在 SES 的  console 上設定 configuration set
name : edm_test
Destination:CloudWatch
name:es_edm_metric
event type: 全勾
value source:email header
dimension name:edmtest      default value:edm

EMAIL 的 HEADER 需要加上
X-SES-CONFIGURATION-SET: edm_test

之後打開 cloudwatch Metrics / SES  
應該會看到剛剛設置的  dimension name:edmtest


如果發現 open click 資訊沒有出來,
要注意如果是 text/plain 的話不會被統計到。
把 mail 內的 text/plain 拿掉後 就出現了


```
Thank you for using the new open and click tracking feature! The reason you did not get any metrics for opens or clicks is because the Content-Type header of the email is text/plain, which SES does not currently support for open and click tracking. Only text/html MIME parts, including those nested within a multipart, are tracked for clicks and opens. Consider using the SendRawEmail API to send a text/html message, specifying your configuration set. More information here: http://docs.aws.amazon.com/ses/latest/APIReference/API_SendRawEmail.html.

Thanks for using Amazon SES!
Zach @ AWS
```

AWS Developer Forums: Unable to track opens and clicks by ... https://forums.aws.amazon.com/thread.jspa?threadID=261284

沒有留言:

張貼留言