Campaigns

Create campaign goal

Creates an event, subscriber-attribute, or tag-applied conversion goal on one email campaign. SMS campaigns are not supported. The attribution window defaults to 168 hours when omitted.

post/campaigns/{campaignId}/goals

Path parameters

campaignIdstring required

Request body

namestring required
descriptionstring nullable
triggerType'event' | 'attribute_change' | 'tag_added'
triggerEventNamestring nullable
triggerTagNamestring nullable
attributePathstring nullable
attributeCondition'changed' | 'changed_to' | 'changed_from_to' nullable
attributeValuestring nullable
attributePreviousValuestring nullable
eventPropertyNamestring nullable
eventPropertyLabelstring nullable
attributionWindowHoursinteger
isActiveboolean

Response

Campaign goal created successfully

successboolean

Changes

Changed in 1 of the 121 revisions of this API.1