post https://app.vwo.com/api/v2/accounts//campaigns//goals
Request URI for Sub Account
POST /accounts/40505/campaigns/7/goals
Request Format
{
"goals":{
"name":"New goal",
"type":"visitPage",
"urls":[
{
"type":"url",
"value":"http://wingify.com"
}
]
}
}
Create a campaign goal
Note:
- valid type includes
visitPage
,engagement
,formSubmit
,clickLink
,clickElement
,revenue
,custom-conversion
- name is a required property
- for type
clickElement
, cssSelectors is required- for type
visitPage
,formSubmit
,clickLink
,revenue
,custom-conversion
, urls is required- valid url type includes
url
,startsWith
,endsWith
,contains
,pattern
,regex
,cssSelector