MCPcopy Create free account
hub / github.com/codecombat/codecombat / getTrackingData

Function getTrackingData

app/lib/paymentUtils.js:21–30  ·  view source on GitHub ↗
({ amount, duration })

Source from the content-addressed store, hash-verified

19}
20
21function getTrackingData ({ amount, duration }) {
22 const options = {}
23 if (amount) {
24 const numericalAmount = parseInt(amount)
25 options.purchaseAmount = numericalAmount
26 options.currency = 'USD'
27 options.predictedLtv = numericalAmount * getLtvMultiplier(duration)
28 }
29 return options
30}
31
32function getLtvMultiplier (duration) {
33 if (!duration)

Callers

nothing calls this directly

Calls 1

getLtvMultiplierFunction · 0.85

Tested by

no test coverage detected