Analytics
Get All Web Analytics Providers
GET https://api.bigcommerce.com/stores/{store_hash}/v3/settings/analyticsRequest
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 - stringrequiredThe MIME type of the response body.
- channel_id in query - integerChannel ID to use for channel-specific settings. If omitted, you will interact with the global settings only.
example
Response
OK
Body
object | application/json
dataarray[object]
example
Get a Web Analytics Provider
GET https://api.bigcommerce.com/stores/{store_hash}/v3/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 - stringrequiredThe MIME type of the response body.
- id in path - integerrequiredWeb Analytics Provider ID.
- channel_id in query - integerChannel 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
idinteger
Web Analytics Provider ID.channel_idinteger
Channels IDnamestring
Web Analytics Provider title.codestring
Web Analytics Provider code.enabledboolean
Flag indicates if Web Analytics Provider is enabled or not.data_tag_enabledboolean
versionnumber
api_secretstring
example
Update a Web Analytics Provider
PUT https://api.bigcommerce.com/stores/{store_hash}/v3/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 - stringrequiredThe MIME type of the response body.
- id in path - integerrequiredWeb Analytics Provider ID.
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
- channel_id in query - integerChannel ID to use for channel-specific settings. If omitted, you will interact with the global settings only.
Body
object | application/json
codestring
>= 1 charactersdata_tag_enabledboolean
enabledboolean
is_oauth_connected
namestring
>= 1 charactersversionnumber
example
Response
Successful operation.
Body
object | application/json
idinteger
Web Analytics Provider ID.channel_idinteger
Channels IDnamestring
Web Analytics Provider title.codestring
Web Analytics Provider code.enabledboolean
Flag indicates if Web Analytics Provider is enabled or not.data_tag_enabledboolean
versionnumber
api_secretstring
example
Did you find what you were looking for?