Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(analytics): Send CompleteRegistration meta analytics event (#2888)
Evan Hutnikd01bf71c365f
diff --git a/js/app/packages/app/component/interactive-onboarding/MobileWebSignupSent.tsx b/js/app/packages/app/component/interactive-onboarding/MobileWebSignupSent.tsxindex ed638abe60..dd81a7bf60 100644--- a/js/app/packages/app/component/interactive-onboarding/MobileWebSignupSent.tsx+++ b/js/app/packages/app/component/interactive-onboarding/MobileWebSignupSent.tsx@@ -10,11 +10,16 @@ export default function MobileWebSignupSent() {onMount(() => {analytics.track('mobile_web_signup_sent_viewed');- analytics.trackMeta('Lead', {+ // Fire as both Lead and CompleteRegistration: Meta's Maximize Value+ // campaigns don't support Lead, so we duplicate to CompleteRegistration.+ // The existing Lead event is used in a custom conversion we use in an ad campaign, so can't remove it+ const leadPayload = {content_name: 'mobile_web_signup',value: MOBILE_WEB_SIGNUP_LEAD_VALUE,currency: 'USD',- });+ };+ analytics.trackMeta('Lead', leadPayload);+ analytics.trackMeta('CompleteRegistration', leadPayload);});return (diff --git a/js/app/packages/app/component/interactive-onboarding/lessons/launch.tsx b/js/app/packages/app/component/interactive-onboarding/lessons/launch.tsxindex 724bdbbd82..1eaa36840b 100644--- a/js/app/packages/app/component/interactive-onboarding/lessons/launch.tsx+++ b/js/app/packages/app/component/interactive-onboarding/lessons/launch.tsx@@ -21,10 +21,6 @@ function LaunchContent(props: LessonContentProps) {analytics.trackMeta('CompleteRegistration', {content_name: 'onboarding_launch',content_category: tier,- });- analytics.trackMeta('Lead', {- content_name: 'signup',- content_category: tier,value: SIGNUP_LEAD_VALUE_BY_TIER[tier] ?? SIGNUP_LEAD_VALUE_DEFAULT,currency: 'USD',});diff --git a/rust/cloud-storage/cal/src/outbound/analytics_client.rs b/rust/cloud-storage/cal/src/outbound/analytics_client.rsindex 1b6ce99919..fbcffd4e3a 100644--- a/rust/cloud-storage/cal/src/outbound/analytics_client.rs+++ b/rust/cloud-storage/cal/src/outbound/analytics_client.rs@@ -83,7 +83,7 @@ impl AnalyticsSink for AnalyticsClientSink {// carrying the browser attribution signals. Only presence flags and// metadata key names are emitted — the raw email, fbp/fbc values,// and user_agent are deliberately not logged to avoid PII leakage.- // Enable with `RUST_LOG=cal=debug` when investigating match quality.+ // Enable with `RUST_LOG=cal=debug` when investigating match qualitytracing::debug!(uid = %booking.uid,content_name = %content_name,@@ -97,7 +97,7 @@ impl AnalyticsSink for AnalyticsClientSink {self.client.track_meta(- "Lead",+ "CompleteRegistration",&user_data,MetaActionSource::Website,Some(&booking.uid),