Analytics

Get All Web Analytics Providers

GET /settings/analytics

Request

Returns a list of web analytics providers.

Authentication

  • X-Auth-Token in header

Parameters

  • store_hash in path - string
  • Accept in header with default of application/json - string
    required
    The MIME type of the response body.
  • channel_id in query - integer
    Channel ID to use for channel-specific settings. If omitted, you will interact with the global settings only.

example

Response

OK

Body

object | application/json
  • data
    array[object]

  • meta
    object

    Response metadata.

example

Get a Web Analytics Provider

GET /settings/analytics/{id}

Request

Returns a single web analytics provider data for a default channel.

Authentication

  • X-Auth-Token in header

Parameters

  • store_hash in path - string
  • Accept in header with default of application/json - string
    required
    The MIME type of the response body.
  • id in path - integer
    required
    Web Analytics Provider ID.
  • channel_id in query - integer
    Channel ID to use for channel-specific settings. If omitted, you will interact with the global settings only.

example

Response

Successful operation.

Body

object | application/json
  • id
    integer

    Web Analytics Provider ID.
  • channel_id
    integer

    Channels ID
  • name
    string

    Web Analytics Provider title.
  • code
    string

    Web Analytics Provider code.
  • enabled
    boolean

    Flag indicates if Web Analytics Provider is enabled or not.
  • data_tag_enabled
    boolean

  • version
    number

  • api_secret
    string

example

Update a Web Analytics Provider

PUT /settings/analytics/{id}

Request

Updates a single web analytics provider data for a default channel.

Authentication

  • X-Auth-Token in header

Parameters

  • store_hash in path - string
  • Accept in header with default of application/json - string
    required
    The MIME type of the response body.
  • id in path - integer
    required
    Web Analytics Provider ID.
  • Content-Type in header with default of application/json - string
    required
    The MIME type of the request body.
  • channel_id in query - integer
    Channel ID to use for channel-specific settings. If omitted, you will interact with the global settings only.

Body

object | application/json
  • code
    string

    >= 1 characters
  • data_tag_enabled
    boolean

  • enabled
    boolean

  • is_oauth_connected

  • name
    string

    >= 1 characters
  • version
    number

example

Response

Successful operation.

Body

object | application/json
  • id
    integer

    Web Analytics Provider ID.
  • channel_id
    integer

    Channels ID
  • name
    string

    Web Analytics Provider title.
  • code
    string

    Web Analytics Provider code.
  • enabled
    boolean

    Flag indicates if Web Analytics Provider is enabled or not.
  • data_tag_enabled
    boolean

  • version
    number

  • api_secret
    string

example

Did you find what you were looking for?