Skip to content

Commit

Permalink
feat: Add logging on Notification-dismiss
Browse files Browse the repository at this point in the history
  • Loading branch information
elwinschmitz committed May 30, 2024
1 parent ea022a0 commit eb946cc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/models/logging-event.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export enum LoggingEvent {
NotFoundParentQuestionIsSelf = 'not-found-parent-question-is-self',
NotFoundSheetRows = 'not-found-sheet-rows',
NotFoundSubCategory = 'not-found-sub-category',
NotificationDismissed = 'notification-dismissed',
OfferClick = 'offer-click',
OfferDetailClick = 'offer-detail-click',
ParentLinkClick = 'parent-link-click',
Expand Down
1 change: 1 addition & 0 deletions src/app/referral/referral.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
>
<details
open
(toggle)="logNotificationDismiss()"
class="dismissible-container ion-margin-vertical ion-padding text-area--level"
>
<summary
Expand Down
7 changes: 7 additions & 0 deletions src/app/referral/referral.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,13 @@ export class ReferralPageComponent implements OnInit {
this.loggingService.logEvent(LoggingEventCategory.ai, event);
}

public logNotificationDismiss() {
this.loggingService.logEvent(
LoggingEventCategory.ai,
LoggingEvent.NotificationDismissed,
);
}

/**
* To support possible bookmarks of the old, query-style URLs
* @deprecated
Expand Down

0 comments on commit eb946cc

Please sign in to comment.