From 265ac599c779815ab254de8b0efde20cb5e3cb92 Mon Sep 17 00:00:00 2001 From: Jeremy Wharton Date: Fri, 23 Jun 2023 00:14:44 -0500 Subject: [PATCH] satellite/analytics: register gallery view click event This change registers the "Gallery View Clicked" analytics event on the satellite's side. Previously, the event reported from the satellite frontend would be ignored because it was not present in the satellite's event whitelist. References #5824 Change-Id: I636ace6a21b2738431d0c1f5adb9a16c4e177188 --- satellite/analytics/service.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/satellite/analytics/service.go b/satellite/analytics/service.go index 61f1fd884..821999837 100644 --- a/satellite/analytics/service.go +++ b/satellite/analytics/service.go @@ -88,6 +88,7 @@ const ( eventExpiredCreditRemoved = "Expired Credit Removed" eventProjectInvitationAccepted = "Project Invitation Accepted" eventProjectInvitationDeclined = "Project Invitation Declined" + eventGalleryViewClicked = "Gallery View Clicked" ) var ( @@ -156,7 +157,9 @@ func NewService(log *zap.Logger, config Config, satelliteName string) *Service { eventSeePaymentsClicked, eventEditPaymentMethodClicked, eventUsageDetailedInfoClicked, eventAddNewPaymentMethodClicked, eventApplyNewCouponClicked, eventCreditCardRemoved, eventCouponCodeApplied, eventInvoiceDownloaded, eventCreditCardAddedFromBilling, eventStorjTokenAddedFromBilling, eventAddFundsClicked, eventProjectMembersInviteSent, eventError, eventProjectNameUpdated, eventProjectDescriptionUpdated, - eventProjectStorageLimitUpdated, eventProjectBandwidthLimitUpdated, eventProjectInvitationAccepted, eventProjectInvitationDeclined} { + eventProjectStorageLimitUpdated, eventProjectBandwidthLimitUpdated, eventProjectInvitationAccepted, eventProjectInvitationDeclined, + eventGalleryViewClicked, + } { service.clientEvents[name] = true }