With the Remote Control API, you can create, update or delete you goals.

Goal types

The goal type can be event, transaction, pageview or screenview.

Goal of type EVENT or TRANSACTION

A goal architecture of type event or transaction is the following :

{
    "type": "<TYPE>",
    "label": "<LABEL>", // use the label field for affiliation in case of a transaction
}

Goal of type PAGEVIEW or SCREENVIEW

A goal architecture of type pageview or screenview is the following :

{
    "type": "<TYPE>",
    "label": "<LABEL>",
    "operator": "<OPERATOR>", // contains, ignoringParameters, exact or regexp
    "value": "<VALUE>"
}