Action information

Returns information about the specified action of a tag.

Request syntax

counterId: ID of the tag for which you want to get action information.

operationId: ID of the action you want to get information about.

GET https://api-metrika.yandex.net/management/v1/counter/{counterId}/operation/{operationId}
 ? [callback=<string>]
callbackCallback function that processes the API response.
callbackCallback function that processes the API response.

Response format


{
    "operation" : {
        "id" :  < int > ,
        "action" :  < operation_type > ,
        "attr" :  < operation_attribute > ,
        "value" :  < string > ,
        "status" :  < operation_status > 
    }
}
Parameters Description
operation Action.
operation
id

Action ID (needs to be specified while changing a tag action).

action Action type.

Possible values:

  • cut_parameter: Remove specific parameter from URL.
  • replace_domain: Replace domain.
  • to_lower: Convert to lower case.
  • merge_https_and_http: Replace https:// with http://.
  • cut_fragment: Remove anchor from URL.
  • cut_all_parameters: Cut all parameters from URL.
attr Field for filtering.

Possible values:

  • referer: Referrer.
  • url: Page URL.
value Value for replacement.
status Action status.

Possible values:

  • active: Action is used.
  • disabled: Action is disabled (without deletion).
Parameters Description
operation Action.
operation
id

Action ID (needs to be specified while changing a tag action).

action Action type.

Possible values:

  • cut_parameter: Remove specific parameter from URL.
  • replace_domain: Replace domain.
  • to_lower: Convert to lower case.
  • merge_https_and_http: Replace https:// with http://.
  • cut_fragment: Remove anchor from URL.
  • cut_all_parameters: Cut all parameters from URL.
attr Field for filtering.

Possible values:

  • referer: Referrer.
  • url: Page URL.
value Value for replacement.
status Action status.

Possible values:

  • active: Action is used.
  • disabled: Action is disabled (without deletion).