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

Function trackProductVisit

app/core/application.js:211–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209 }, // one hour
210
211 trackProductVisit () {
212 if (window.serverSession != null ? window.serverSession.amActually : undefined) { return }
213 const utils = require('core/utils')
214 const activity = `visit-${utils.isOzaria ? 'ozaria' : 'codecombat'}`
215 const last = me.get('activity')?.[activity]?.last
216 if (last && moment(last).isAfter(moment().subtract(12, 'hour'))) { return }
217 return me.trackActivity(activity)
218 },
219
220 setReferrerTracking () {
221 if (window.serverSession != null ? window.serverSession.amActually : undefined) { return }

Callers

nothing calls this directly

Calls 2

trackActivityMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected