BOOMR.plugins. LOGN


This plugin is responsible for fetching config.js[on] for mPulse.

For information on how to include this plugin, see the Building tutorial.

Beacon Parameters

This plugin adds the following parameters to the beacon:

  • h.key: mPulse API key
  • h.d: mPulse domain
  • h.t: mPulse Anti-CSRF timestamp
  • h.cr: mPulse Anti-CSRF crumb
  • t_configjs: The time the config.js[on] data was sent to init()
  • t_configfb: The time the config.js[on] data's first bytes were received
  • t_configls: The time the config was read from localStorage (delta from navStart)

This Plugin may add the following parameter[s] to the config request when available from noted sources:

  • ak.ai: If AK plugin is available and has ak.ai property on akVars object.

Methods


init(config)

Initializes the plugin.

Parameters:

Name Type Description
config object

Configuration

Properties
Name Type Argument Description
rate_limited boolean <optional>

Whether or not the session is rate limited

autorun boolean <optional>

Whether or not to auto-run on onload

Returns:

BOOMR.plugins.LOGN The LOGN plugin for chaining


is_complete()

Whether or not this plugin is complete

Returns:

Type: boolean

true if the plugin is complete


readyToSend()

Determines if Boomerang can send a beacon. Waits for h.cr to be available

Returns:

Type: boolean

True once h.cr is available