Create new goal
Create new goal with given parameters
- application/json
Request Body required
accessLimiters object[]
Array [accessHolder stringPossible values: [
PERSONALIZATION
,AB_TEST
,TAG
]accessHolderId int64id int64]- description string
- hasMultipleConversions boolean
- mentalistWeight double
- name string required
Name of goal
params object
- oneOf
- AccessToPageGoalParams
- ClickTrackingGoalParams
- PageViewsGoalParams
- ScrollTrackingGoalParams
- TimeSpentGoalParams
matchString stringmatchType stringPossible values: [
CONTAINS
,CORRESPONDS_EXACTLY
,REGULAR_EXPRESSION
]customSelectors object[]
Selection with a CSS selector. CSS selector to track the corresponding element
Array [id int64mode stringPossible values: [
ID
,CLASS
,TAG
,TAG_CLASS
,CUSTOM
,AUTOGENERATED
,CONTENT
,CUSTOM_ATTRIBUTE
]selector string]url stringURL of the page on which you want to create your click tracker. Example: www.mozilla.org
numberMatchType stringPossible values: [
MORE_THAN
,EQUALS
,LESS_THAN
]numberOfVisitedPages int32type stringPossible values: [
ELEMENT
,PERCENTAGE
,PIXELS_HEIGHT
]When the user scrolls down to
url stringvalue doubleScroll tracking value
matchType stringPossible values: [
MORE_THAN
,EQUALS
,LESS_THAN
]timeSeconds int32- oneOf
- siteId int64
- status string
Possible values: [
ACTIVE
,INACTIVE
]Indicates the status of the goal: active or inactive
- tags string[]
List of tags using by this goal. For get requests: this is an optional field needs to specify in request params.
- trackingTools string[]
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 string
Possible values: [
CLICK
,CUSTOM
,SCROLL
,PAGE_VIEWS
,URL
,TIME_SPENT
,RETENTION_RATE
,WAREHOUSE
,RATIO_METRICS
]
- 201
- 400
- 401
- 403
- 404
- 423
- 500
Created
- */*
- Schema
- Example (from schema)
Schema
accessLimiters object[]
Array [accessHolder stringPossible values: [
PERSONALIZATION
,AB_TEST
,TAG
]accessHolderId int64id int64]- createdBy int64
Account id to whom created this experiment
- dateCreated date-time
- dateModified date-time
- description string
- experimentAmount int64
Number of experiments using this goal. This is an optional field needs to specify in request params.
- experiments int64[]
List of experiment ids using this goal. This is an optional field needs to specify in request params.
- featureFlagAmount int64
Number of feature flags using this goal. This is an optional field needs to specify in request params.
- hasMultipleConversions boolean
- id int64
Unique identifier of goal
- isActive boolean deprecated
Deprecated. Use status instead. Indicates the status of the goal: active or not
- isTargetingSegmentMentalist boolean
Indicates that the goal related to mentalist segment. This is an optional field needs to specify in request params.
- mentalistWeight double
- name string required
Name of goal
params object
- oneOf
- AccessToPageGoalParams
- ClickTrackingGoalParams
- PageViewsGoalParams
- ScrollTrackingGoalParams
- TimeSpentGoalParams
matchString stringmatchType stringPossible values: [
CONTAINS
,CORRESPONDS_EXACTLY
,REGULAR_EXPRESSION
]customSelectors object[]
Selection with a CSS selector. CSS selector to track the corresponding element
Array [id int64mode stringPossible values: [
ID
,CLASS
,TAG
,TAG_CLASS
,CUSTOM
,AUTOGENERATED
,CONTENT
,CUSTOM_ATTRIBUTE
]selector string]url stringURL of the page on which you want to create your click tracker. Example: www.mozilla.org
numberMatchType stringPossible values: [
MORE_THAN
,EQUALS
,LESS_THAN
]numberOfVisitedPages int32type stringPossible values: [
ELEMENT
,PERCENTAGE
,PIXELS_HEIGHT
]When the user scrolls down to
url stringvalue doubleScroll tracking value
matchType stringPossible values: [
MORE_THAN
,EQUALS
,LESS_THAN
]timeSeconds int32- oneOf
- personalizationAmount int64
Number of personalizations using this goal. This is an optional field needs to specify in request params.
- personalizations int64[]
List of personalization ids using this goal. This is an optional field needs to specify in request params.
- siteId int64
- status string
Possible values: [
ACTIVE
,INACTIVE
]Indicates the status of the goal: active or inactive
- tags string[]
List of tags using by this goal. For get requests: this is an optional field needs to specify in request params.
- trackingTools string[]
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 string
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-12-20T15:04:33.702Z",
"dateModified": "2024-12-20T15:04:33.702Z",
"description": "string",
"experimentAmount": 0,
"experiments": [
0
],
"featureFlagAmount": 0,
"hasMultipleConversions": true,
"id": 0,
"isTargetingSegmentMentalist": true,
"mentalistWeight": 0,
"name": "string",
"params": {
"matchString": "string",
"matchType": "CONTAINS"
},
"personalizationAmount": 0,
"personalizations": [
0
],
"siteId": 0,
"status": "ACTIVE",
"tags": [
"string"
],
"trackingTools": [
"GOOGLE_ANALYTICS4"
],
"type": "CLICK"
}
Bad Request
- */*
- Schema
- Example (from schema)
Schema
- code string
- impersonator string
- message string
- name string
- status string
Possible values: [
SUCCESS
,ERROR
] - sub string
- time int64
- timestamp date-time
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-12-20T15:04:33.702Z"
}
Unauthorized
- */*
- Schema
- Example (from schema)
Schema
- code string
- impersonator string
- message string
- name string
- status string
Possible values: [
SUCCESS
,ERROR
] - sub string
- time int64
- timestamp date-time
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-12-20T15:04:33.702Z"
}
Forbidden
- */*
- Schema
- Example (from schema)
Schema
- code string
- impersonator string
- message string
- name string
- status string
Possible values: [
SUCCESS
,ERROR
] - sub string
- time int64
- timestamp date-time
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-12-20T15:04:33.702Z"
}
Not Found
- */*
- Schema
- Example (from schema)
Schema
- code string
- impersonator string
- message string
- name string
- status string
Possible values: [
SUCCESS
,ERROR
] - sub string
- time int64
- timestamp date-time
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-12-20T15:04:33.702Z"
}
Locked
- */*
- Schema
- Example (from schema)
Schema
- code string
- impersonator string
- message string
- name string
- status string
Possible values: [
SUCCESS
,ERROR
] - sub string
- time int64
- timestamp date-time
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-12-20T15:04:33.702Z"
}
Internal Server Error
- */*
- Schema
- Example (from schema)
Schema
- code string
- impersonator string
- message string
- name string
- status string
Possible values: [
SUCCESS
,ERROR
] - sub string
- time int64
- timestamp date-time
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-12-20T15:04:33.702Z"
}