15.4. Summary

In this chapter, we solved two problems related to tracking actions by our email message readers. We used a hidden tracking image to track the viewing of an image. We did that by adding a tiny, almost invisible image to the email message that points to a dynamically generated image. The URL to the dynamic image contains information about the message and the user that allows us to record the fact that the user has opened the email message and viewed it.

We also track hyperlinks in the email message by changing them to use our tracker controller. The links are changed to point to a Link action to the tracker controller that will use URL parameters to identify the message and the recipient, record the information to the database, and then redirect the user to the requested link.

Get ASP.NET MVC 1.0 Test Driven Development: Problem - Design - Solution now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.