build this
This commit is contained in:
parent
b6fc597f8b
commit
bfbd266466
|
|
@ -350,15 +350,14 @@ module JamRuby
|
||||||
0.00
|
0.00
|
||||||
end
|
end
|
||||||
|
|
||||||
if monthly_cost > 0
|
ltv = monthly_cost * 12
|
||||||
ltv = monthly_cost * 12
|
begin
|
||||||
begin
|
puts "Sending CAPI Subscribe event #{current_user.email}, #{monthly_cost}, #{ltv}"
|
||||||
puts "Sending CAPI Subscribe event #{current_user.email}, #{monthly_cost}, #{ltv}"
|
CapiTransmitter.send_event('Subscribe', current_user, { value: monthly_cost.to_s, currency: 'USD', predicted_ltv: ltv.to_s })
|
||||||
CapiTransmitter.send_event('Subscribe', current_user, { value: monthly_cost.to_s, currency: 'USD', predicted_ltv: ltv.to_s })
|
rescue => e
|
||||||
rescue => e
|
puts "Error sending CAPI Subscribe event #{current_user.email}, #{e.message}"
|
||||||
puts "Error sending CAPI Subscribe event #{current_user.email}, #{e.message}"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue => e
|
rescue => e
|
||||||
puts "Error sending CAPI Subscribe event #{current_user.email}, #{e.message}"
|
puts "Error sending CAPI Subscribe event #{current_user.email}, #{e.message}"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue