Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 43926a7

Browse files
authored
chore: remove obsolete tracking code for Cody App downloads (#63364)
Cody App was removed in June 2023 and is no longer in use. ## Test plan CI
1 parent 1f9e72c commit 43926a7

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

cmd/frontend/graphqlbackend/user_usage_stats.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,6 @@ func (r *schemaResolver) LogEvents(ctx context.Context, args *EventBatch) (*Empt
187187
})
188188
}
189189

190-
// On Sourcegraph.com only, log a HubSpot event indicating when the user clicks button to downloads Cody App.
191-
if dotcom.SourcegraphDotComMode() && args.Event == "DownloadApp" && userID != 0 && userPrimaryEmail != "" {
192-
hubspotutil.SyncUser(userPrimaryEmail, hubspotutil.AppDownloadButtonClickedEventID, &hubspot.ContactProperties{})
193-
}
194-
195190
argumentPayload, err := decode(args.Argument)
196191
if err != nil {
197192
return nil, err

cmd/frontend/hubspot/hubspotutil/hubspotutil.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ var CodyClientInstalledEventID = "000018021981"
4545
// CodyClientInstalledV3EventID is the HubSpot ID for the new event which support custom properties.
4646
var CodyClientInstalledV3EventID = "pe2762526_codyinstall"
4747

48-
// AppDownloadButtonClickedEventID is the HubSpot Event ID for when a user clicks on a button to download Cody App.
49-
var AppDownloadButtonClickedEventID = "000019179879"
50-
5148
var client *hubspot.Client
5249

5350
// HasAPIKey returns true if a HubspotAPI key is present. A subset of requests require a HubSpot API key.

0 commit comments

Comments
 (0)