20. Juli 2016
Fix Sitecore EXM (Email Experience Manager) Analytics
When the Sitecore Email Experience Manager (EXM) sends an Email, it adds an image tag to the Email’s body. That is how EXM tracks analytics for the sent emails.
<img height="1" width="1" border="0" style="border-color:transparent" src="https://ci5.googleusercontent.com/proxy/RxlzWHIRmMuZRqvJir-LAIUm8p99J7F7qv63nQV8s8mjMQMAm8UpL7r5lzJtX_yCHbjtgcTSYW50
As you can see, it contains a path to the /sitecore/RegisterEmailOpened.aspx page. It is ok if you have no Firewall limitations. But sometimes links to the Sitecore folder are restricted on CD environments.
In that case you can use the workaround below:
- First you need to move the RegisterEmailOpened.aspx to some public location.
- Second, update the SendEmail pipeline:
Obviously all emails are sent via this pipeline. The first processor fills the Emails objects and the second sends them. So the easiest solution is to create an additional processor between those two to replace the link within the Email’s body.