Add tracking to metadata links

So that we can make smarter decisions about how to change the metadata
patterns some data on usage of metadata links is needed. This adds click
tracking to the metadata links.