track read more clicks in announcements

This commit is contained in:
Henry Oswald 2017-02-15 12:16:35 +00:00
parent 936c4a181d
commit 8cd3d21792
2 changed files with 4 additions and 0 deletions

View file

@ -50,6 +50,7 @@ block content
p.announcement-date {{ announcement.date | date:"longDate" }}
a.announcement-link(
ng-href="{{ announcement.url }}"
ng-click="logAnnouncementClick()",
target="_blank"
) Read more
div.text-center(

View file

@ -15,6 +15,9 @@ define [
markAnnouncementsAsRead = ->
event_tracking.sendMB "announcement-alert-dismissed", { blogPostId: $scope.announcements[0].id }
$scope.announcementClicked = ->
event_tracking.sendMB "announcement-read-more-clicked", { blogPostId: $scope.announcements[0].id }
refreshAnnouncements()
$scope.toggleAnnouncementsUI = ->