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"]