Skip to content

Commit

Permalink
Plans Page: add additional properties to page view event (#95018)
Browse files Browse the repository at this point in the history
  • Loading branch information
aneeshd16 authored Sep 30, 2024
1 parent a7b46f5 commit 8d2712e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/my-sites/plans/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,13 @@ class Plans extends Component {
<PageViewTracker path="/plans/:site" title="Plans" />
{ /** QueryProducts added to ensure currency-code state gets populated for usages of getCurrentUserCurrencyCode */ }
<QueryProducts />
<TrackComponentView eventName="calypso_plans_view" />
<TrackComponentView
eventName="calypso_plans_view"
eventProperties={ {
current_plan_slug: currentPlanSlug || null,
is_site_on_paid_plan: !! ( currentPlanSlug && ! isFreePlan ),
} }
/>
{ ( isDomainUpsell || domainFromHomeUpsellFlow ) && (
<DomainUpsellDialog domain={ selectedSite.slug } />
) }
Expand Down

0 comments on commit 8d2712e

Please sign in to comment.