Thanks for being patient while we implement your feedback to improve the developer experience.

Get All Web Analytics Providers

GET /settings/analytics

Request

Returns a list of web analytics providers.

Authentication

  • X-Auth-Token in header - required

Parameters

  • store_hash in path - string
  • channel_id in query - integer

    Channel ID to use for channel-specific setting. If omitted, you will interact with the global setting only.

example

curl --request GET \ --url 'https://api.bigcommerce.com/stores/[store_hash]/v3/settings/analytics' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'X-Auth-Token: xxxxxxxxxxxxxxxxx'

Response

OK

Body

object | application/json
  • data
    array[object]

  • meta
    object

    Response metadata.

example

{ "data": [ { "code": "string", "enabled": true, "id": 0, "name": "string" } ], "meta": {} }

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 - required

Parameters

  • store_hash in path - string
  • id in path - integer - required

    Web Analytics Provider ID.

  • channel_id in query - integer

    Channel ID to use for channel-specific setting. If omitted, you will interact with the global setting only.

example

curl --request GET \ --url 'https://api.bigcommerce.com/stores/[store_hash]/v3/settings/analytics/[id]' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'X-Auth-Token: xxxxxxxxxxxxxxxxx'

Response

Successful operation.

Body

object | application/json
  • code
    string

    Web Analytics Provider code.

  • enabled
    boolean

    Flag indicates if Web Analytics Provider is enabled or not.

  • id
    integer

    Web Analytics Provider ID.

  • name
    string

    Web Analytics Provider title.

example

{ "code": "string", "enabled": true, "id": 0, "name": "string" }

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 - required

Parameters

  • store_hash in path - string
  • Content-Type in header with default of application/json - string - required

    The MIME type of the request body.

  • id in path - integer - required

    Web Analytics Provider ID.

  • channel_id in query - integer

    Channel ID to use for channel-specific setting. If omitted, you will interact with the global setting only.

Body

object | application/json
  • channel_id
    number

  • code
    string

    >= 1 characters
  • data_tag_enabled
    boolean

  • enabled
    boolean

  • id
    number

  • is_oauth_connected

  • name
    string

    >= 1 characters
  • version
    number

example

{ "channel_id": 0, "code": "string", "data_tag_enabled": true, "enabled": true, "id": 0, "is_oauth_connected": null, "name": "string", "version": 0 }

Response

Successful operation.

Body

object | application/json
  • code
    string

    Web Analytics Provider code.

  • enabled
    boolean

    Flag indicates if Web Analytics Provider is enabled or not.

  • id
    integer

    Web Analytics Provider ID.

  • name
    string

    Web Analytics Provider title.

example

{ "code": "string", "enabled": true, "id": 0, "name": "string" }