Skip to content

Commit

Permalink
satellite/analytics,web/satellite: Update Hubspot integration
Browse files Browse the repository at this point in the history
Update business form in the satellite UI to match form values in
Hubspot; update property names in analytics backend to match property
names in Hubspot.

Change-Id: I2365584867f3fad1e08579e4e53b028bbf4dd52c
  • Loading branch information
mobyvb committed Apr 15, 2024
1 parent 846a585 commit 666d42e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions satellite/analytics/hubspot.go
Expand Up @@ -189,17 +189,17 @@ func (q *HubSpotEvents) EnqueueUserOnboardingInfo(fields TrackOnboardingInfoFiel
}

properties := map[string]interface{}{
"email": fields.Email,
"firstname": firstName,
"lastname": lastName,
"storage_use": fields.StorageUseCase,
"email": fields.Email,
"firstname": firstName,
"lastname": lastName,
"use_case": fields.StorageUseCase,
}
if fields.Type == Professional {
properties["have_sales_contact"] = fields.HaveSalesContact
properties["interested_in_partnering"] = fields.InterestedInPartnering
properties["interested_in_partnering_"] = fields.InterestedInPartnering // trailing underscore in property name is not a mistake
properties["company_size"] = fields.EmployeeCount
properties["company"] = fields.CompanyName
properties["title"] = fields.JobTitle
properties["jobtitle"] = fields.JobTitle
properties["storage_needs"] = fields.StorageNeeds
properties["functional_area"] = fields.FunctionalArea
}
Expand Down
Expand Up @@ -90,7 +90,7 @@
<v-col cols="12" sm="5" md="4" lg="3">
<v-select
v-model="storageNeeds"
:items="['Under 25 TB', '25 TB - 50 TB', '51 TB - 150 TB', '151 TB - 250 TB', '251 TB -500 TB', '501 TB and above']"
:items="['Under 25 TB', '25 TB - 50 TB', '51 TB - 150 TB', '151 TB - 250 TB', '251 TB - 500 TB', '501 TB and above']"
label="Storage Needs"
variant="outlined"
hide-details="auto"
Expand All @@ -99,7 +99,7 @@
<v-col cols="12" sm="5" md="4" lg="3">
<v-select
v-model="useCase"
:items="[ 'Active Archive', 'Backup & Recovery', 'CDN Origin', 'Generative AI', 'Media Workflows', 'Other']"
:items="[ 'Active archive', 'Backup & recovery', 'CDN origin', 'Generative AI', 'Media workflows', 'Other']"
label="Use Case"
variant="outlined"
hide-details="auto"
Expand Down

0 comments on commit 666d42e

Please sign in to comment.