List of actions

Returns information about tag actions.

Request syntax

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

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

Response format


{
    "operations" : [ {
        "id" :  < int > ,
        "action" :  < operation_type > ,
        "attr" :  < operation_attribute > ,
        "value" :  < string > ,
        "status" :  < operation_status > 
    }, ... ]
}
Parameters Description
operations Tag actions.
operations
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
operations Tag actions.
operations
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).