I want to setup event tracking with analytics on a blog post on a site running wordpress. My objective is to see exactly how many views that post gets and how many clicks on the image accompanying the post.
I am reading through Google's guide to this and they gave an example for the script to insert for tracking the plays of a video:
<a href="#" onClick="_gaq.push(['_trackEvent', 'Videos', 'Play', 'Baby\'s First Birthday']);">Play</a>
So for my custom event if I were to change 'Video' (the category name) to 'blog post' and 'PLay' (action name" to 'clicks' would that work?
Also where exactly on the site would I insert this code?