Client Side (JavaScript) API

GET Calls

tools

Returns the helper tools object

ablyft.get('tools')

experiments

Returns an array of all available experiments

ablyft.get('experiments')

pages

Returns an array of all available pages

ablyft.get('pages')

goals

Returns an array of all available goals

ablyft.get('goals')

activeExperimentIds

Returns and object of experimentID:variationID (key:value) pairs

ablyft.get('activeExperimentIds')

activePageIds

Returns an array of all activated pageIDs

ablyft.get('activePageIds')

variationById

Returns a variation object by a given variationID (i.e. "12345678")

ablyft.get('variationById', 12345678)

goalById

Returns a goal object by a given goalID (i.e. "12345678")

ablyft.get('goalById', 12345678)

trackingConsentEnabled

Returns a bool value if the tracking consent was enabled or disable. Null if no state was set.

ablyft.get('trackingConsentEnabled')