Goal resource representation

PropertyTypeDescriptionEditable
idIntGoal IdNo
typestringGoal Type

Valid values include visitPage, engagement, formSubmit, clickLink, clickElement, revenue, custom-conversion

Note:Please take caution while changing type, it might impact the data collection
Yes
namestringGoal NameYes
isPrimarybooleanFlag which signifies if the goal is primary goal or notNo
urlsNested ObjectContains the url related information on which goal will be triggered.

See Campaign resource for more details on this
Yes
cssSelectorslistGoal path
cssSelector.0stringselector pathYes
isCreatedInEditorbooleanFlag if the goal was created in editor or notNo

πŸ“˜

Note:

urls is not required for engagement type goal

πŸ“˜

Note:

Multiple cssSelectors should be added as array values, like ["selector1, selector2"]