Adding Google Analytics to a Button

I’m looking to track button clicks via Google Analytics. Has anyone solved that and can share suggestions or a solution?