cabennett85/gittest — Issue #1336: Track when stories are written in Google Analytics
Author: cabennett85
Created: 2012-03-02 00:46:34+00:00
State: open

Track when stories are written as an event in Google Analytics.

(as a reference we do this on BroadCause when someone watches a video)

Right now we redirect to the story with new=t parameter. Instead of a parameter, we should use a session variable that we then clear after the first time the page is viewed (so we eliminate the possibility of double counting). On that pageview, we need to run the javascript:
{{{
_gaq.push(['_trackEvent', 'Stories', 'Story Post']);
}}}
which tracks an event with the category 'Stories' and the action 'Story Post' (no label and no value).