This site is no longer updated.Go to new Conversational Cloud docs

$analytics.joinExperiment


This method makes the user join an experiment as part of A/B testing.

Syntax

The method accepts a string with the name of the necessary experiment:

$analytics.joinExperiment("Alternative greeting");

The method randomly selects one of the experiment branches and returns its letter (from A to E).

If the method is called repeatedly during one session, it returns the string value of alreadyJoined.