Adding tracking code to event emails. (#1985)