Module: popups

Methods

(inner) getPageviewTracker(config) → {EventTracker}

Gets the appropriate analytics event tracker for logging virtual pageviews.

Parameters:
Name Type Description
config Object
Source:
Returns:
Type
EventTracker

(inner) getStatsvTracker(user, config, experiments) → {EventTracker}

Gets the appropriate analytics event tracker for logging metrics to StatsD via the "StatsD timers and counters" analytics event protocol.

If logging metrics to StatsD is enabled for the duration of the user's session, then the appriopriate function is mw.track; otherwise it's () => {}.

Parameters:
Name Type Description
user Object
config Object
experiments Experiments
Source:
Returns:
Type
EventTracker

(inner) registerChangeListeners(store, registerActions, userSettings, settingsDialog, previewBehavior, statsvTracker, pageviewTracker) → {void}

Subscribes the registered change listeners to the store.

Parameters:
Name Type Description
store Redux.Store
registerActions Object
userSettings UserSettings
settingsDialog function
previewBehavior PreviewBehavior
statsvTracker EventTracker
pageviewTracker EventTracker
Source:
Returns:
Type
void