(store)
| 23 | */ |
| 24 | export 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected