Analytics
- Full name:
\BigCommerce\Settings\Sections\Analytics
- Parent class:
\BigCommerce\Settings\Sections\Settings_Section
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
NAME | public | ’analytics’ | |
TRACK_BY_HOOK | public | ’bigcommerce/analytics/track_by’ | |
SYNC_ANALYTICS | public | ’bigcommerce_sync_analytics’ | |
FACEBOOK_PIXEL | public | ’bigcommerce_facebook_pixel_id’ | |
GOOGLE_ANALYTICS | public | ’bigcommerce_google_analytics_id’ | |
TRACK_PRODUCT_SKU | public | ’bigcommerce_track_product_sku’ | |
SEGMENT | public | ’bigcommerce_segment_key’ | |
FACEBOOK_PIXEL_NAME | public | ’Facebook Pixel’ | |
GOOGLE_ANALYTICS_NAME | public | ’Google Analytics’ |
Methods
__construct
public __construct(\BigCommerce\Api\Store_Api $api, \BigCommerce\Api\v3\Api\SettingsApi $api_v3): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$api | \BigCommerce\Api\Store_Api | |
$api_v3 | \BigCommerce\Api\v3\Api\SettingsApi |
register_settings_section
public register_settings_section(): void
render_checkbox
public render_checkbox(mixed $args): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$args | mixed |
update_pixel_option
public update_pixel_option(string $old_value, string $new_value): void
Parameters:
Parameter | Type | Description |
---|---|---|
$old_value | string | |
$new_value | string |
update_google_option
public update_google_option(string $old_value, string $new_value): void
Parameters:
Parameter | Type | Description |
---|---|---|
$old_value | string | |
$new_value | string |
Inherited methods
render_field
public render_field(array $args): void
Parameters:
Parameter | Type | Description |
---|---|---|
$args | array |
render_number_field
public render_number_field(array $args): void
Parameters:
Parameter | Type | Description |
---|---|---|
$args | array |
get_disabled_attr_headless
Get disabled attribute if headless option is on
public get_disabled_attr_headless(): string
Automatically generated on 2025-01-21