How do you measure a click?

If somebody clicks a link in your message they end up on your server and this gets automatically recorded.