Skip to content

Commit

Permalink
Get name and guid for sending to Google Analytics.
Browse files Browse the repository at this point in the history
  • Loading branch information
karlqumu committed Oct 26, 2011
1 parent bcc5a5e commit 879b346
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/index.ejs
Expand Up @@ -156,8 +156,10 @@

<script>
$('.kv-packshot-holder, .kv-info-field-title').live('click', function() {
var name = $('.kv-info-field-title', this).text();
var guid = $(this).attr('guid');
var kulu = $(this).parent();
var name = $('.kv-info-field-title', kulu).text();
var guid = kulu.attr('guid');
_gaq.push(['_trackEvent', 'Videos', 'Play', name + " (" + guid + ")"]);
});
Expand Down

0 comments on commit 879b346

Please sign in to comment.