From 5c155752d2b68420e7296cee273af412184be903 Mon Sep 17 00:00:00 2001 From: Moby von Briesen Date: Thu, 24 Aug 2023 09:44:43 -0400 Subject: [PATCH] satellite/analytics: Update lifecyclestage for personal users Personal users, like business users, should now be classified with a lifecycle stage of PQL ("product qualified lead") instead of "other" Change-Id: Iff5139043da1c8e75559302320ff9ca43ea956e5 --- satellite/analytics/hubspot.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/satellite/analytics/hubspot.go b/satellite/analytics/hubspot.go index 18e973c90..7b4d98e64 100644 --- a/satellite/analytics/hubspot.go +++ b/satellite/analytics/hubspot.go @@ -33,10 +33,8 @@ const ( professionalFormID = "cc693502-9d55-4204-ae61-406a19148cfe" // This form(ID) is the personal account form. basicFormID = "77cfa709-f533-44b8-bf3a-ed1278ca3202" - // The hubspot lifecycle stage of business accounts (Product Qualified Lead). - businessLifecycleStage = "66198674" - // The hubspot lifecycle stage of personal accounts. - personalLifecycleStage = "other" + // The hubspot lifecycle stage of all new accounts (Product Qualified Lead). + lifecycleStage = "66198674" ) // HubSpotConfig is a configuration struct for Concurrent Sending of Events. @@ -148,6 +146,7 @@ func (q *HubSpotEvents) EnqueueCreateUser(fields TrackCreateUserFields) { newField("account_created", "true"), newField("have_sales_contact", strconv.FormatBool(fields.HaveSalesContact)), newField("signup_partner", fields.UserAgent), + newField("lifecyclestage", lifecycleStage), } properties := map[string]interface{}{ @@ -164,7 +163,6 @@ func (q *HubSpotEvents) EnqueueCreateUser(fields TrackCreateUserFields) { var formURL string if fields.Type == Professional { - formFields = append(formFields, newField("lifecyclestage", businessLifecycleStage)) formFields = append(formFields, newField("company", fields.CompanyName)) formFields = append(formFields, newField("storage_needs", fields.StorageNeeds)) @@ -172,8 +170,6 @@ func (q *HubSpotEvents) EnqueueCreateUser(fields TrackCreateUserFields) { formURL = fmt.Sprintf(hubspotFormTemplate, professionalFormID) } else { - formFields = append(formFields, newField("lifecyclestage", personalLifecycleStage)) - formURL = fmt.Sprintf(hubspotFormTemplate, basicFormID) }