Add tracking to the trial status sidebar widget experiment

What’s Included

Backend Recording

  • Record which groups receive the control experience vs. which groups receive the candidate experience

Frontend Tracking

  • Track click rate of the widget itself – will be handled by a standard (frontend) Snowplow event
    • Handled in !55411 (merged)
    • These clicks will take the user to the billing page for the top-level group
    • Event Details
      • Event name: click_link
      • Event label: trial_status_widget
      • Event category: automatically set to be the URL of the page the user was on when they clicked
      • Context: namespace_id: group.id (Can’t have this yet as our current policy doesn’t allow it)
  • Track click rate of the two CTA buttons (each will be tracked separately)
    • Handled in !55411 (merged)
    • One takes the user to the billing page, one takes them to the in-app purchase flow
    • Event Details
      • Event name: click_link
      • Event label: upgrade_to_ultimate or compare_plans
      • Event category: automatically set to be the URL of the page the user was on when they clicked
  • Track view rate of the popover
    • Handled in !55810 (merged)
    • Need a custom fired event whenever the popover component is mounted (maybe?)
    • Event Details
      • Event name: show_component
      • Event label: trial_status_popover
      • Event category: use the URL of the page the user is on (maybe?)

Potential Follow-up

  • Track the trial upgrade rate of the control vs. experimental cohorts
    • I’m thinking that this won’t be necessary to explicitly track as we can manually correlate the data in Sisense.

Follow-up from #288014 (closed), also related to #220930 (closed)

Edited by Dallas Reedy