$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:
Argument | Type | Description | Required |
---|---|---|---|
result | String | Campaign result | Yes |
textCampaignId | Number | Campaign ID | No |
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.