Reuse the pixel id from your previous setup: '. - '%s
', - $pixel_id - ); - return $message; - } - - private function getFbeBrowserSettings(){ - ob_start(); - $fbe_extras = json_encode(array( - "business_config" => array( - "business" => array( - "name" => "Solutions_Engineering_Team" - ), - ), - "setup" => array( - "external_business_id" => - FacebookWordpressOptions::getExternalBusinessId(), - "timezone" => 'America/Los_Angeles', - "currency" => "USD", - "business_vertical" => "ECOMMERCE", - "channel" => "DEFAULT" - ), - "repeat" => false, - )); - ?> -%s
- -Reuse the pixel id from your previous setup: ' . + '%s
', + $pixel_id + ); + return $message; + } + + /** + * Generates and returns the browser settings HTML and JavaScript + * for the Facebook Business Extension. + * + * This function constructs and outputs a set of HTML elements and + * JavaScript code necessary for configuring + * the Facebook Business Extension in the browser. It includes sections + * for advanced configuration, ads creation, + * and ads insights, as well as functionality for testing + * conversion API events. + * + * The function dynamically generates JSON-encoded configuration + * data and embeds it into the HTML via + * data attributes, allowing for the interactive configuration + * of various Facebook Business Extension features. + * + * It also enqueues the necessary scripts and styles for + * rendering the settings page and handles + * inline script parameters for AJAX communication + * and configuration management. + * + * @return string The HTML and JavaScript code for the + * Facebook Business Extension browser settings. + */ + private function get_fbe_browser_settings() { + ob_start(); + $fbe_extras = wp_json_encode( + array( + 'business_config' => array( + 'business' => array( + 'name' => 'Solutions_Engineering_Team', + ), + ), + 'setup' => array( + 'external_business_id' => + FacebookWordpressOptions::get_external_business_id(), + 'timezone' => 'America/Los_Angeles', + 'currency' => 'USD', + 'business_vertical' => 'ECOMMERCE', + 'channel' => 'DEFAULT', + ), + 'repeat' => false, + ) + ); + ?> +Meta Events Manager is a tool that + enables you to view and manage your + event data. In Events Manager, you can + set up, monitor and troubleshoot issues + with your integrations, such as the + Conversions API and Meta pixel.
+ +Code/Message | +Event Type | +Status | +
+ No events logged yet.
+ + +%s
+ +