I would like to know how I can track a link from an email with google analytics.
It would make sense to want this, if the destination URL was to a static PDF file that would be served directly by the HTTP server (no application involved). For example,
The code to this intermediate page would be something like this:
Let's assume that intermediate redirect page is served at
http://example.com/ebook/confirmation. In the email you would add the UTM codes to that URL link, like @yuriy636 suggested: