Create new goal
POST/goals
Create new goal with given parameters
Request
- application/json
Body
required
Array [
]
- AccessToPageGoalParams
- ClickTrackingGoalParams
- PageViewsGoalParams
- ScrollTrackingGoalParams
- TimeSpentGoalParams
Array [
]
accessLimiters
object[]
Possible values: [PERSONALIZATION
, AB_TEST
, TAG
]
Does this goal have multiple conversions
Name of goal
params
object
oneOf
Possible values: [CONTAINS
, CORRESPONDS_EXACTLY
, REGULAR_EXPRESSION
]
customSelectors
object[]
Selection with a CSS selector. CSS selector to track the corresponding element
Possible values: [ID
, CLASS
, TAG
, TAG_CLASS
, CUSTOM
, AUTOGENERATED
, CONTENT
, CUSTOM_ATTRIBUTE
]
URL of the page on which you want to create your click tracker. Example: www.mozilla.org
Possible values: [MORE_THAN
, EQUALS
, LESS_THAN
]
When the user scrolls down to
Possible values: [ELEMENT
, PERCENTAGE
, PIXELS_HEIGHT
]
Scroll tracking value
Possible values: [MORE_THAN
, EQUALS
, LESS_THAN
]
Site Id of the project that the goal belongs to
Indicates the status of the goal: active or inactive
Possible values: [ACTIVE
, INACTIVE
]
List of tags using by this goal. For get requests: this is an optional field needs to specify in request params.
Possible values: [GOOGLE_ANALYTICS4
, GOOGLE_ANALYTICS4_AUDIENCES
, GOOGLE_UNIVERSAL_ANALYTICS
, ECONDA
, SMART_TAG
, PIANO
, ADOBE_OMNITURE
, EULERIAN
, WEBTRENDS
, KISSMETRICS
, PIWIK
, CRAZY_EGG
, COM_SCORE
, TEALIUM
, YSANCE
, M_PATHY
, SMARTFOCUS
, EMARSYS
, EXPERTSENDER
, TAG_COMMANDER
, CONTENT_SQUARE
, WEBTREKK
, CUSTOM_INTEGRATIONS
, HEAP
, SEGMENT
, MIXPANEL
, CLARITY
, IABTCF
, REDSHIFT
, SMARTLOOK
, MOUSEFLOW
, KLAVIYO
, FULLSTORY
, AMPLITUDE
, SNOWPLOW
, JUNE
, MPARTICLE
, BIGQUERY
, RUDDERSTACK
, SNOWFLAKE
, GLASSBOX
, HUBSPOT
, AIR360
, DATADOG
, QUANTUM_METRIC
, KAMELEOON_TRACKING
, CUSTOM_TRACKING
, VERCEL
, AKAMAI
]
Type of the goal
Possible values: [CLICK
, CUSTOM
, SCROLL
, PAGE_VIEWS
, URL
, TIME_SPENT
, RETENTION_RATE
, WAREHOUSE
, RATIO_METRICS
]
Responses
- 201
- 400
- 401
- 403
- 404
- 423
- 500
Created
- */*
- Schema
- Example (from schema)
Schema
Array [
]
- AccessToPageGoalParams
- ClickTrackingGoalParams
- PageViewsGoalParams
- ScrollTrackingGoalParams
- TimeSpentGoalParams
Array [
]
accessLimiters
object[]
Possible values: [PERSONALIZATION
, AB_TEST
, TAG
]
Account id to whom created this experiment
Number of experiments using this goal. This is an optional field needs to specify in request params.
List of experiment ids using this goal. This is an optional field needs to specify in request params.
Number of feature flags using this goal. This is an optional field needs to specify in request params.
Does this goal have multiple conversions
Unique identifier of goal
Deprecated. Use status instead. Indicates the status of the goal: active or not
Indicates that the goal related to mentalist segment. This is an optional field needs to specify in request params.
Name of goal
params
object
oneOf
Possible values: [CONTAINS
, CORRESPONDS_EXACTLY
, REGULAR_EXPRESSION
]
customSelectors
object[]
Selection with a CSS selector. CSS selector to track the corresponding element
Possible values: [ID
, CLASS
, TAG
, TAG_CLASS
, CUSTOM
, AUTOGENERATED
, CONTENT
, CUSTOM_ATTRIBUTE
]
URL of the page on which you want to create your click tracker. Example: www.mozilla.org
Possible values: [MORE_THAN
, EQUALS
, LESS_THAN
]
When the user scrolls down to
Possible values: [ELEMENT
, PERCENTAGE
, PIXELS_HEIGHT
]
Scroll tracking value
Possible values: [MORE_THAN
, EQUALS
, LESS_THAN
]
Number of personalizations using this goal. This is an optional field needs to specify in request params.
List of personalization ids using this goal. This is an optional field needs to specify in request params.
Site Id of the project that the goal belongs to
Indicates the status of the goal: active or inactive
Possible values: [ACTIVE
, INACTIVE
]
List of tags using by this goal. For get requests: this is an optional field needs to specify in request params.
Possible values: [GOOGLE_ANALYTICS4
, GOOGLE_ANALYTICS4_AUDIENCES
, GOOGLE_UNIVERSAL_ANALYTICS
, ECONDA
, SMART_TAG
, PIANO
, ADOBE_OMNITURE
, EULERIAN
, WEBTRENDS
, KISSMETRICS
, PIWIK
, CRAZY_EGG
, COM_SCORE
, TEALIUM
, YSANCE
, M_PATHY
, SMARTFOCUS
, EMARSYS
, EXPERTSENDER
, TAG_COMMANDER
, CONTENT_SQUARE
, WEBTREKK
, CUSTOM_INTEGRATIONS
, HEAP
, SEGMENT
, MIXPANEL
, CLARITY
, IABTCF
, REDSHIFT
, SMARTLOOK
, MOUSEFLOW
, KLAVIYO
, FULLSTORY
, AMPLITUDE
, SNOWPLOW
, JUNE
, MPARTICLE
, BIGQUERY
, RUDDERSTACK
, SNOWFLAKE
, GLASSBOX
, HUBSPOT
, AIR360
, DATADOG
, QUANTUM_METRIC
, KAMELEOON_TRACKING
, CUSTOM_TRACKING
, VERCEL
, AKAMAI
]
Type of the goal
Possible values: [CLICK
, CUSTOM
, SCROLL
, PAGE_VIEWS
, URL
, TIME_SPENT
, RETENTION_RATE
, WAREHOUSE
, RATIO_METRICS
]
{
"accessLimiters": [
{
"accessHolder": "PERSONALIZATION",
"accessHolderId": 0,
"id": 0
}
],
"createdBy": 0,
"dateCreated": "2024-07-29T15:51:28.071Z",
"dateModified": "2024-07-29T15:51:28.071Z",
"description": "string",
"experimentAmount": 0,
"experiments": [
0
],
"featureFlagAmount": 0,
"hasMultipleConversions": true,
"id": 0,
"isTargetingSegmentMentalist": true,
"mentalistWeight": 0,
"name": "string",
"params": {},
"personalizationAmount": 0,
"personalizations": [
0
],
"siteId": 0,
"status": "ACTIVE",
"tags": [
"string"
],
"trackingTools": [
"GOOGLE_ANALYTICS4"
],
"type": "CLICK"
}
Bad Request
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Unauthorized
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Forbidden
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Not Found
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Locked
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Internal Server Error
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}