Skip to content

Instantly share code, notes, and snippets.

@Epigene
Created April 20, 2017 12:11
Show Gist options
  • Save Epigene/6e27d78e0f9ecc5ba5271d3476effe35 to your computer and use it in GitHub Desktop.
Save Epigene/6e27d78e0f9ecc5ba5271d3476effe35 to your computer and use it in GitHub Desktop.
Lifetime panel hash
# for SH
{
:users=>7,
:users_subbed_at_least_once=>4,
:users_renewed_at_least_once=>1,
:subscriptions_belonging_to_users=>6,
:users_with_unsubscribed_last_subscription=>1,
:users_with_terminated_last_subscription=>1,
:users_with_at_least_one_upsell_purchase=>2,
:upsell_payments_belonging_to_users=>3,
:users_subbed_at_least_once_percent=>57,
:users_renewed_at_least_once_percent=>14,
:users_with_unsubscribed_last_subscription_percent=>25,
:users_with_terminated_last_subscription_percent=>25,
:users_with_at_least_one_upsell_purchase_percent=>29,
:upsell_payments_belonging_to_users_proportion=>0.43,
# šim key domāts taisīt loop, lai dinamiski paemtu visus upsells
:upsells=> {
:belt=>{:payments=>2, :percent=>29, :revenue=>5.9},
:snack_book=>{:payments=>1, :percent=>14, :revenue=>3.95}
},
:a7_payments=>1, # SH specific
:a7_percent=>1, # SH specific
:a7_revenue=>1.0, # SH specific
:levels_registrations=>5,
:levels_registrations_percent=>57,
:levels_registrations_revenue=>13.6,
:levels_registrations_average_lifetime=>1.0,
:levels_registrations_median_lifetime=>1.0,
:levels_registrations_average_lifetime_value=>1.0,
:total_initial_payments=>9,
:total_revenue=>24.45,
:user_average_lifetime=>4.86,
:user_average_lifetime_value=>3.49,
:user_average_monthly_value=>0.72
}
# for SL
{
:users=>7,
:users_subbed_at_least_once=>4,
:users_renewed_at_least_once=>1,
:subscriptions_belonging_to_users=>6,
:users_with_unsubscribed_last_subscription=>1,
:users_with_terminated_last_subscription=>1,
:users_with_at_least_one_upsell_purchase=>2,
:upsell_payments_belonging_to_users=>3,
:users_subbed_at_least_once_percent=>57,
:users_renewed_at_least_once_percent=>14,
:users_with_unsubscribed_last_subscription_percent=>25,
:users_with_terminated_last_subscription_percent=>25,
:users_with_at_least_one_upsell_purchase_percent=>29,
:upsell_payments_belonging_to_users_proportion=>0.43,
# šim key domāts taisīt loop, lai dinamiski paemtu visus upsells
:upsells=> {
:belt=>{:payments=>2, :percent=>29, :revenue=>5.9},
:snack_book=>{:payments=>1, :percent=>14, :revenue=>3.95}
},
:level1_payments=>1, # SL specific
:level1_percent=>1, # SL specific
:level1_revenue=>1.0, # SL specific
:levels_registrations=>5,
:levels_registrations_percent=>57,
:levels_registrations_revenue=>13.6,
:levels_registrations_average_lifetime=>1.0,
:levels_registrations_median_lifetime=>1.0,
:levels_registrations_average_lifetime_value=>1.0,
:total_initial_payments=>9,
:total_revenue=>24.45,
:user_average_lifetime=>4.86,
:user_average_lifetime_value=>3.49,
:user_average_monthly_value=>0.72
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment