- Request
- Path parameters
- Body
- GoalE
- GoalCondition
- ActionGoal
- ChatGoalCondition
- ChatGoalConditionAnswered
- ChatGoalConditionPlatform
- ChatGoalConditionTag
- ChatGoal
- ConditionalGoal
- CompositeGoal
- DepthGoal
- EmailGoal
- FileGoal
- MessengerGoal
- PaymentSystemGoal
- PhoneGoal
- SiteSearchGoal
- SocialNetworkGoal
- UrlGoal
- VisitDurationGoal
- LocationOnPage
- Responses
- 200 OK
Создание цели
Создает цель счетчика.
Request
POST
https://api-metrika.yandex.net/management/v1/counter/{counterId}/goals
Path parameters
|
Name |
Description |
|
counterId |
Type: integer Идентификатор счетчика, для которого вы хотите создать цель. |
Body
application/json
{
"goal": {
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"is_favorite": true,
"status": "example",
"conditions": [
{}
],
"prev_goal_id": 0,
"flag": "example"
}
}
|
Name |
Description |
|
goal |
One of 13 types
Example
|
GoalE
|
Name |
Description |
|
name |
Type: string Наименование цели. Min length: Max length: Example: |
|
type |
Type: string Тип цели:
Example: |
|
default_price |
Type: number Цена цели по умолчанию. |
|
id |
Type: integer Идентификатор цели. Укажите данный параметр при изменении и удалении цели счетчика. |
|
is_favorite |
Type: boolean Является ли цель избранной:
|
|
status |
Type: string Example: |
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_favorite": true,
"status": "example"
}
GoalCondition
Список структур с условиями цели.
|
Name |
Description |
|
type |
Type: string Тип условия:
Example: |
|
url |
Type: string Значение зависит от типа цели:
Example: |
Example
{
"type": "example",
"url": "example"
}
ActionGoal
JavaScript-событие.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
exampleExample
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
ChatGoalCondition
Список структур с условиями цели.
|
Name |
Description |
|
field |
Type: string К чему применять цель. Example: |
Example
{
"field": "example"
}
ChatGoalConditionAnswered
All of 2 types
-
Type: ChatGoalCondition
Список структур с условиями цели.
Example
{ "field": "example" } -
Type: object
answered
Type: boolean
Статус ответа в чате.
Example
{ "answered": true }
Example
{
"field": "example",
"answered": true
}
ChatGoalConditionPlatform
All of 2 types
-
Type: ChatGoalCondition
Список структур с условиями цели.
Example
{ "field": "example" } -
Type: object
platform
Type: string
Платформа чата. Возможные значения:
telegram;viber;whatsApp.
Example:
telegramExample
{ "platform": "telegram" }
Example
{
"field": "example",
"platform": "telegram"
}
ChatGoalConditionTag
All of 2 types
-
Type: ChatGoalCondition
Список структур с условиями цели.
Example
{ "field": "example" } -
Type: object
operator
Type: string
Тип условия. Возможные значения:
contain— содержит.exact— совпадает.start— начинается с.regexp— удовлетворяет регулярному выражению.
Example:
examplevalue
Type: string
Min length:
1Max length:
1024Example:
exampleExample
{ "operator": "example", "value": "example" }
Example
{
"field": "example",
"operator": "example",
"value": "example"
}
ChatGoal
Нажатие на чат.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: array
One of 3 types
-
Type: ChatGoalConditionAnswered
Example
{ "field": "example", "answered": true } -
Type: ChatGoalConditionPlatform
Example
{ "field": "example", "platform": "telegram" } -
Type: ChatGoalConditionTag
Example
{ "field": "example", "operator": "example", "value": "example" }
Example
[ { "field": "example", "answered": true } ]Example
{ "conditions": [ { "field": "example", "answered": true } ] } -
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"is_favorite": true,
"status": "example",
"conditions": [
null
]
}
ConditionalGoal
Список шагов составной цели.
|
Name |
Description |
|
name |
Type: string Наименование цели. Min length: Max length: Example: |
|
type |
Type: string Тип цели:
Example: |
|
conditions |
Type: GoalCondition[] Example
|
|
default_price |
Type: number Цена цели по умолчанию. |
|
flag |
Type: string Тип цели для клиентов Яндекс Маркета:
Example: |
|
id |
Type: integer Идентификатор цели. Укажите данный параметр при изменении и удалении цели счетчика. |
|
is_favorite |
Type: boolean Является ли цель избранной:
|
|
status |
Type: string Example: |
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
CompositeGoal
Составная цель. Нужна для группировки и задания порядка обычных целей. В качестве шагов может содержать цели типа "Посещение страниц" и "JavaScript-событие". Шаг считается достигнутым, если были достигнуты все предыдущие шаги, и после этого были выполнены все условия текущего шага.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "is_favorite": true, "status": "example" } -
Type: object
steps
Type: ConditionalGoal[]
Min items:
0Max items:
5Example
[ { "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "is_favorite": true, "status": "example", "conditions": [ { "type": "example", "url": "example" } ], "prev_goal_id": 0, "flag": "example" } ]Example
{ "steps": [ { "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "is_favorite": true, "status": "example", "conditions": [ { "type": "example", "url": "example" } ], "prev_goal_id": 0, "flag": "example" } ] }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"is_favorite": true,
"status": "example",
"steps": [
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"is_favorite": true,
"status": "example",
"conditions": [
{}
],
"prev_goal_id": 0,
"flag": "example"
}
]
}
DepthGoal
Количество просмотров. Цель считается достигнутой, если посетитель просмотрел заданное количество страниц сайта.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "is_favorite": true, "status": "example" } -
Type: object
depth
Type: integer
Количество просмотренных пользователем страниц.
Min value:
2Example
{ "depth": 2 }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"is_favorite": true,
"status": "example",
"depth": 2
}
EmailGoal
Нажатие на email.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
exampleExample
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
FileGoal
Скачивание файлов. Цель считается достигнутой, если посетитель скачал любой файл или определенный файл.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
exampleExample
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
MessengerGoal
Переход в мессенджер. Цель будет достигнута при клике пользователем на ссылку, которая ведет в мессенджер.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
exampleExample
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
PaymentSystemGoal
Платежные системы. Цель считается достигнутой, если посетитель совершил оплату через платежную систему.
All of 1 type
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "is_favorite": true, "status": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"is_favorite": true,
"status": "example"
}
PhoneGoal
Нажатие на номер телефона.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
examplehide_phone_number
Type: boolean
Скрывать номер телефона на десктопах.
Example
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example", "hide_phone_number": true }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example",
"hide_phone_number": true
}
SiteSearchGoal
Поиск по сайту. Цель будет достигнута при поиске на сайте, если в урле в get-параметрах есть хотя бы одно совпадение.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
exampleExample
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
SocialNetworkGoal
Переход в социальную сеть. Цель будет достигнута при клике пользователем на ссылку, которая ведет в социальную сеть.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
exampleExample
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
UrlGoal
Посещение страниц. Достигается, когда выполняется хотя бы одно из условий.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
exampleExample
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
VisitDurationGoal
Продолжительность визита. Цель будет достигнута при времени визита больше заданного.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "is_favorite": true, "status": "example" } -
Type: object
duration
Type: integer
Продолжительность визита в секундах.
Min value:
1Example
{ "duration": 1 }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"is_favorite": true,
"status": "example",
"duration": 1
}
LocationOnPage
|
Name |
Description |
|
path |
Type: string Местоположение на странице Min length: Max length: Example: |
|
type_of_path |
Type: string Тип указанного местоположения Example: |
Example
{
"type_of_path": "example",
"path": "example"
}
Responses
200 OK
OK
Body
application/json
{
"goal": {
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"goal_source": "example",
"is_favorite": true,
"status": "example",
"conditions": [
{}
],
"prev_goal_id": 0,
"flag": "example"
}
}
|
Name |
Description |
|
goal |
One of 13 types
Example
|
GoalE
|
Name |
Description |
|
name |
Type: string Наименование цели. Min length: Max length: Example: |
|
type |
Type: string Тип цели:
Example: |
|
default_price |
Type: number Цена цели по умолчанию. |
|
goal_source |
Type: string Признак того, как создана цель:
Example: |
|
id |
Type: integer Идентификатор цели. Укажите данный параметр при изменении и удалении цели счетчика. |
|
is_favorite |
Type: boolean Является ли цель избранной:
|
|
status |
Type: string Example: |
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"goal_source": "example",
"is_favorite": true,
"status": "example"
}
ActionGoal
JavaScript-событие.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "goal_source": "example", "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
exampleExample
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"goal_source": "example",
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
ChatGoal
Нажатие на чат.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "goal_source": "example", "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: array
One of 3 types
-
Type: ChatGoalConditionAnswered
Example
{ "field": "example", "answered": true } -
Type: ChatGoalConditionPlatform
Example
{ "field": "example", "platform": "telegram" } -
Type: ChatGoalConditionTag
Example
{ "field": "example", "operator": "example", "value": "example" }
Example
[ { "field": "example", "answered": true } ]Example
{ "conditions": [ { "field": "example", "answered": true } ] } -
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"goal_source": "example",
"is_favorite": true,
"status": "example",
"conditions": [
null
]
}
ConditionalGoal
Список шагов составной цели.
|
Name |
Description |
|
name |
Type: string Наименование цели. Min length: Max length: Example: |
|
type |
Type: string Тип цели:
Example: |
|
conditions |
Type: GoalCondition[] Example
|
|
default_price |
Type: number Цена цели по умолчанию. |
|
flag |
Type: string Тип цели для клиентов Яндекс Маркета:
Example: |
|
goal_source |
Type: string Признак того, как создана цель:
Example: |
|
id |
Type: integer Идентификатор цели. Укажите данный параметр при изменении и удалении цели счетчика. |
|
is_favorite |
Type: boolean Является ли цель избранной:
|
|
status |
Type: string Example: |
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"goal_source": "example",
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
CompositeGoal
Составная цель. Нужна для группировки и задания порядка обычных целей. В качестве шагов может содержать цели типа "Посещение страниц" и "JavaScript-событие". Шаг считается достигнутым, если были достигнуты все предыдущие шаги, и после этого были выполнены все условия текущего шага.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "goal_source": "example", "is_favorite": true, "status": "example" } -
Type: object
steps
Type: ConditionalGoal[]
Min items:
0Max items:
5Example
[ { "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "goal_source": "example", "is_favorite": true, "status": "example", "conditions": [ { "type": "example", "url": "example" } ], "prev_goal_id": 0, "flag": "example" } ]Example
{ "steps": [ { "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "goal_source": "example", "is_favorite": true, "status": "example", "conditions": [ { "type": "example", "url": "example" } ], "prev_goal_id": 0, "flag": "example" } ] }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"goal_source": "example",
"is_favorite": true,
"status": "example",
"steps": [
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"goal_source": "example",
"is_favorite": true,
"status": "example",
"conditions": [
{}
],
"prev_goal_id": 0,
"flag": "example"
}
]
}
DepthGoal
Количество просмотров. Цель считается достигнутой, если посетитель просмотрел заданное количество страниц сайта.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "goal_source": "example", "is_favorite": true, "status": "example" } -
Type: object
depth
Type: integer
Количество просмотренных пользователем страниц.
Min value:
2Example
{ "depth": 2 }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"goal_source": "example",
"is_favorite": true,
"status": "example",
"depth": 2
}
EmailGoal
Нажатие на email.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "goal_source": "example", "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
exampleExample
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"goal_source": "example",
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
FileGoal
Скачивание файлов. Цель считается достигнутой, если посетитель скачал любой файл или определенный файл.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "goal_source": "example", "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
exampleExample
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"goal_source": "example",
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
MessengerGoal
Переход в мессенджер. Цель будет достигнута при клике пользователем на ссылку, которая ведет в мессенджер.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "goal_source": "example", "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
exampleExample
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"goal_source": "example",
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
PaymentSystemGoal
Платежные системы. Цель считается достигнутой, если посетитель совершил оплату через платежную систему.
All of 1 type
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "goal_source": "example", "is_favorite": true, "status": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"goal_source": "example",
"is_favorite": true,
"status": "example"
}
PhoneGoal
Нажатие на номер телефона.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "goal_source": "example", "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
examplehide_phone_number
Type: boolean
Скрывать номер телефона на десктопах.
Example
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example", "hide_phone_number": true }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"goal_source": "example",
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example",
"hide_phone_number": true
}
SiteSearchGoal
Поиск по сайту. Цель будет достигнута при поиске на сайте, если в урле в get-параметрах есть хотя бы одно совпадение.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "goal_source": "example", "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
exampleExample
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"goal_source": "example",
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
SocialNetworkGoal
Переход в социальную сеть. Цель будет достигнута при клике пользователем на ссылку, которая ведет в социальную сеть.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "goal_source": "example", "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
exampleExample
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"goal_source": "example",
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
UrlGoal
Посещение страниц. Достигается, когда выполняется хотя бы одно из условий.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "goal_source": "example", "is_favorite": true, "status": "example" } -
Type: object
conditions
Type: GoalCondition[]
Example
[ { "type": "example", "url": "example" } ]flag
Type: string
Тип цели для клиентов Яндекс Маркета:
basket— корзина, страница посещения корзины.order— заказ, страница подтверждения заказа.
Example:
exampleExample
{ "conditions": [ { "type": "example", "url": "example" } ], "flag": "example" }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"goal_source": "example",
"is_favorite": true,
"status": "example",
"conditions": [
{
"type": "example",
"url": "example"
}
],
"flag": "example"
}
VisitDurationGoal
Продолжительность визита. Цель будет достигнута при времени визита больше заданного.
All of 2 types
-
Type: GoalE
Example
{ "id": 0, "name": "example", "type": "example", "default_price": 0.5, "is_retargeting": true, "goal_source": "example", "is_favorite": true, "status": "example" } -
Type: object
duration
Type: integer
Продолжительность визита в секундах.
Min value:
1Example
{ "duration": 1 }
Example
{
"id": 0,
"name": "example",
"type": "example",
"default_price": 0.5,
"is_retargeting": true,
"goal_source": "example",
"is_favorite": true,
"status": "example",
"duration": 1
}
No longer supported, please use an alternative and newer version.