mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 06:43:45 +00:00
track read more clicks in announcements
This commit is contained in:
parent
936c4a181d
commit
8cd3d21792
2 changed files with 4 additions and 0 deletions
|
@ -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(
|
||||
|
|
|
@ -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 = ->
|
||||
|
|
Loading…
Reference in a new issue