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

Method constructor

app/core/Tracker2/index.js:25–56  ·  view source on GitHub ↗
(store)

Source from the content-addressed store, hash-verified

23 */
24export default class Tracker2 extends BaseTracker {
25 constructor (store) {
26 super()
27
28 this.store = store
29
30 this.cookieConsentTracker = new CookieConsentTracker(this.store)
31 this.internalTracker = new InternalTracker(this.store)
32 this.googleAnalyticsTracker = new GoogleAnalyticsTracker(this.store)
33 this.fullStoryTracker = new FullStoryTracker(this.store, this)
34 this.facebookPixelTracker = new FacebookPixelTracker(this.store)
35 this.twitterPixelTracker = new TwitterPixelTracker(this.store)
36 this.zendeskTracker = new ZendeskTracker(this.store)
37 this.superflowTracker = new SuperflowTracker(this.store)
38
39 this.trackers = [
40 this.internalTracker,
41 ]
42
43 const isGlobal = !(window.features || {}).china
44 if (isGlobal) {
45 // add trackers we don't want china to enable here.
46 this.trackers = [
47 ...this.trackers,
48 this.googleAnalyticsTracker,
49 this.fullStoryTracker,
50 this.facebookPixelTracker,
51 this.twitterPixelTracker,
52 this.zendeskTracker,
53 this.superflowTracker
54 ]
55 }
56 }
57
58 async _initializeTracker () {
59 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected