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 keyh.d: mPulse domainh.t: mPulse Anti-CSRF timestamph.cr: mPulse Anti-CSRF crumbt_configjs: The time the config.js[on] data was sent toinit()t_configfb: The time the config.js[on] data's first bytes were receivedt_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 hasak.aiproperty on akVars object.
Methods
-
init(config)
-
Initializes the plugin.
Parameters:
Name Type Description configobject Configuration
Properties
Name Type Argument Description rate_limitedboolean <optional>
Whether or not the session is rate limited
autorunboolean <optional>
Whether or not to auto-run on onload
Returns:
BOOMR.plugins.LOGNThe LOGN plugin for chaining -
is_complete()
-
Whether or not this plugin is complete
Returns:
Type: boolean
trueif 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