Skip to main content

$analytics.setTextCampaignResult

This method records the result of a text campaign. Information on results is available through the campaign report in the Text campaigns section as well as in dialog analytics.

Syntax

$analytics.setTextCampaignResult("Campaign result", 1);

The method accepts two arguments:

ArgumentTypeDescriptionRequired
resultStringCampaign resultYes
textCampaignIdNumberCampaign IDNo

Usage details

  • If called without passing the second argument, the method will use the ID of the last launched campaign.
  • If called several times, the final campaign result will be the value passed in the last call.