Skip to main content

$analytics.setTextCampaignResult

The method sets the text campaign result that you can track in the statistics report.

Syntax

The method accepts two arguments:

ArgumentTypeDescriptionRequired
resultStringCampaign resultYes
textCampaignIdNumberCampaign IDNo
$analytics.setTextCampaignResult("Campaign result", 1);

If the ID is not passed, the method will use the ID of the last launched campaign.

The campaign result will be displayed in the campaign report on the Text campaigns tab and on the Analytics > Dialogs page.