Add Analytics tracking to New Blog Post masthead link

This commit is contained in:
Marcus Whybrow 2012-08-08 14:43:24 +01:00
parent 0941a17d22
commit f16cb18840

View File

@ -6,7 +6,7 @@ tab: overview
<div class="masthead">
<div class="new-blog-post">
<a href="{{ site.baseurl}}{{ paginator.posts[0].url }}">
<a href="{{ site.baseurl}}{{ paginator.posts[0].url }}" onclick="_gaq.push(['_trackEvent', 'Masthead Actions', 'New Blog Post', '{{ paginator.posts[0].title }}']);">
New Blog Post: <strong>{{ paginator.posts[0].title }}</strong>
</a>
</div>