Skip to content

Commit f79baaf

Browse files
committed
Stats pricing grid: record which CTA was clicked
1 parent 2b6709a commit f79baaf

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

client/my-sites/stats/pricing-grid/pricing-grid.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ export default function PricingGrid( { onDismiss }: PricingGridProps ) {
137137

138138
// Starting for free is a plan choice: record the dismissal and reveal the dashboard.
139139
const startForFree = () => {
140-
trackStatsAnalyticsEvent( 'stats_pricing_grid_free_cta_clicked', { blog_id: siteId } );
140+
trackStatsAnalyticsEvent( 'stats_pricing_grid_free_cta_clicked', {
141+
blog_id: siteId,
142+
cta: 'free',
143+
} );
141144
dismissPricingGrid();
142145
onDismiss?.();
143146
};
@@ -148,7 +151,10 @@ export default function PricingGrid( { onDismiss }: PricingGridProps ) {
148151
// programmatically rather than via href so the link also works under Odyssey's
149152
// hashbang routing when the wp-admin click shim doesn't apply (e.g. middle-click).
150153
const goToPurchase = () => {
151-
trackStatsAnalyticsEvent( 'stats_pricing_grid_paid_cta_clicked', { blog_id: siteId } );
154+
trackStatsAnalyticsEvent( 'stats_pricing_grid_paid_cta_clicked', {
155+
blog_id: siteId,
156+
cta: 'paid',
157+
} );
152158
page( `/stats/purchase/${ siteSlug }?from=${ PRICING_GRID_REFERRER }` );
153159
};
154160

0 commit comments

Comments
 (0)