Store_Api::update_analytics_settings( $id, array $settings )
Summary
Update store analytics setting by id
Parameters
- $id
-
(Required)
- $settings
-
(array) (Required)
Return
(bool)
Source
File: src/BigCommerce/Api/Store_Api.php
public function update_analytics_settings( $id, array $settings ) { try { unset( $settings[ 'id' ] ); unset( $settings[ 'name' ] ); // not going to listen for success $this->updateResource( sprintf( '/settings/analytics/%d', $id ), $settings ); return true; } catch ( \Exception $e ) { // TODO: provide more detailed information about an error return false; } }