Set variant when sixpack request successful

This commit is contained in:
Jessica Lawshe 2018-08-15 13:32:26 -05:00
parent b9e63421a8
commit 356e31caec

View file

@ -152,6 +152,7 @@ define [
if $scope.shouldABTestPlans
sixpack.participate 'plans-details', ['default', 'more-details'], (chosenVariation, rawResponse)->
if rawResponse?.status != 'failed'
$scope.plansVariant = chosenVariation
event_tracking.send 'subscription-funnel', 'plans-page-loaded', chosenVariation