A cfwheels plugin that adds the ability to track email views and clicks
After cfwheels extracts the content of the zip file do the following.
- Copy the TrackEmails.cfc file from /plugins/TrackEmail/controllers/ to /controllers/.
- Copy the trackemails folder from /plugins/TrackEmail/views/ to /views/.
- Go to index.cfm?controller=trackemails&action=install to try to create tables. If it fails there is ms sql server script to create the tables.
To track emails all you have to do is add track=true
to the arguments of your sendEmail call.
sendEmail(
from="john.doe@email.com",
to="jane.doe@email.com",
subject="Dear Jane",
template=genericemailtemplate,
track=true
)
View reports for each unique email sent. A unique email is determined by site it is sent from and subject line.
Reports show graphs for emails sent, views, and clicks as well as a graph for each link and how often it was clicked. Reports also show sent, views, and clicks for each recipient.