Analytics

Constants

ConstantVisibilityTypeValue
NAMEpublic’analytics’
TRACK_BY_HOOKpublic’bigcommerce/analytics/track_by’
SYNC_ANALYTICSpublic’bigcommerce_sync_analytics’
FACEBOOK_PIXELpublic’bigcommerce_facebook_pixel_id’
GOOGLE_ANALYTICSpublic’bigcommerce_google_analytics_id’
TRACK_PRODUCT_SKUpublic’bigcommerce_track_product_sku’
SEGMENTpublic’bigcommerce_segment_key’
FACEBOOK_PIXEL_NAMEpublic’Facebook Pixel’
GOOGLE_ANALYTICS_NAMEpublic’Google Analytics’

Methods

__construct

public __construct(\BigCommerce\Api\Store_Api $api, \BigCommerce\Api\v3\Api\SettingsApi $api_v3): mixed

Parameters:

ParameterTypeDescription
$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:

ParameterTypeDescription
$argsmixed

update_pixel_option

public update_pixel_option(string $old_value, string $new_value): void

Parameters:

ParameterTypeDescription
$old_valuestring
$new_valuestring

update_google_option

public update_google_option(string $old_value, string $new_value): void

Parameters:

ParameterTypeDescription
$old_valuestring
$new_valuestring

Inherited methods

render_field

public render_field(array $args): void

Parameters:

ParameterTypeDescription
$argsarray

render_number_field

public render_number_field(array $args): void

Parameters:

ParameterTypeDescription
$argsarray

get_disabled_attr_headless

Get disabled attribute if headless option is on

public get_disabled_attr_headless(): string


Automatically generated on 2025-01-21