Simple: Marketo rewrites your link so it bounces off the tracking/branding domain. User clicks the link, gets redirected to the original page/document, the click shows up in their Activity Log as a Clicked Link in Email activity.
Haven't you tested it?