Skip to main content
This doc talks about the chmln.on JavaScript API method. Common use cases include:
  • Syncing the Experience interaction data (automatically collected by Chameleon) to your database/warehouse or any other tools, using the methods below.
  • Getting access to the A/B testing attribute (percent) when the Chameleon User Profile is loaded.
  • Logging Experience data to an integration that Chameleon does not yet have a native integration with
  • Knowing when the HelpBar is opened/closed or when data is needed.

An overview of the data Chameleon collects for analysis, by reading this article.

List of supported events


HelpBar events (only app:navigate is required)
Typical ordering as Chameleon boots: load, load:chmln, after:account, identify:request, identify:sync, after:profile, tour:event, chmln:event

Examples

HelpBar

The JavaScript API for HelpBar has many examples and use cases.

Listen for Tour/Microsurvey events — send to custom integration

This might be relevant in the following instances:
  • Sending data to a tool without a native Chameleon integration.
  • Sending data to a tool via a backend/server-side method.

Send properties

This might be relevant in the following instances:
  • Sending data to your database, to allow deeper analysis of Chameleon Events.
  • Sending data that is not collected by your analytics tool (e.g. “Chameleon testing ID”).

Sending data to other tools directly

For example, you can send the Chameleon “Percentage value” to your analytics solution, using a script like the below (with examples for Segment and Mixpanel):
Note: You can easily adapt this based on where you’d like to send this data in your system.