Store_Api::get_analytics_settings()

Summary

Return the list of store analytics settings


Return

(array|array[])


Source

File: src/BigCommerce/Api/Store_Api.php

	public function get_analytics_settings() {
		try {
			$settings = $this->getCollection( '/settings/analytics' );
			$settings = array_map( function ( Resource $resource ) {
				return get_object_vars( $resource->getUpdateFields() );
			}, $settings );
		} catch ( \Exception $e ) {
			$settings = [];
		}

		return $settings ?: [];
	}

User Contributed Notes

You must log in before being able to contribute a note or feedback.