PCBoost — GA4 WooCommerce Ecommerce Events

/* ============================================================ PCBoost — GA4 WooCommerce Ecommerce Events v1.0 (WPCode snippet — PHP, Run Everywhere) Sends add_to_cart, begin_checkout, and purchase events into the GA4 property ALREADY loaded on the site (G-K2YZ3JVMP4). Does not load a new gtag.js script or create…Continue reading

PCBoost — Trustpilot Overflow Reviews

/* ============================================================ PCBoost — Trustpilot Overflow Reviews v1.2 (WPCode snippet — PHP, Run Everywhere) Trustpilot’s own free plugin sends the first PCB_TP_MONTHLY_QUOTA (deliberately set a little under 50, since this snippet can’t see Trustpilot’s real internal count and it’s safer…Continue reading

PCBoost — Shop Page Intro Content

/* ============================================================ PCBoost — Shop Page Intro Content (WPCode snippet — PHP, Run Everywhere) Adds a styled intro block above the product grid on the main Shop page only (page 1, not paginated pages – avoids the same block repeating…Continue reading

Google Customer Reviews Opt-In

/* ============================================================ PCBoost — Google Customer Reviews Opt-In v1.0 (WPCode snippet — PHP, Run Everywhere) Fires Google’s required survey opt-in module on the WooCommerce order-received page – the same moment GA4’s purchase event fires, immediately after checkout completes. This is…Continue reading

PCBoost — Job Application Form

/* ============================================================ PCBoost — Job Application Form (WPCode snippet — PHP, Run Everywhere) Front end: place the shortcode [pcb_job_application] on a page (e.g. /careers/ or /work-with-us/). Candidates tick whichever skill areas genuinely apply to them – nothing is mandatory beyond…Continue reading

PCBoost — OpenAI Feed Diagnostic (temporary)

add_action(‘admin_notices’, function () { if ( ! current_user_can(‘manage_options’) || ! isset($_GET[‘pcb_feed_diag’]) ) { return; } $c = function_exists(‘curl_version’) ? curl_version() : array(‘version’ => ‘n/a’, ‘protocols’ => array()); $csv = WP_CONTENT_DIR . ‘/uploads/woo-feed/chatgpt/csv/openaiads.csv’; $info = array( ‘php version’ => PHP_VERSION, ‘ssh2…Continue reading

PCBoost – SFTP listing diagnostic (temporary)

add_action(‘admin_notices’, function () { if ( ! current_user_can(‘manage_options’) || ! isset($_GET[‘pcb_sftp_ls’]) ) { return; } $pass = defined(‘PCB_OAI_SFTP_PASS’) ? PCB_OAI_SFTP_PASS : ”; $out = array(); $out[] = ‘last push : ‘ . get_option(‘pcb_oai_last_run’, ‘(never)’); $next = wp_next_scheduled(‘pcb_oai_push_event’); $out[] = ‘next…Continue reading

PCBoost – Facebook feed price format fix

/** * PCBoost – Facebook catalogue: strip thousands separators from prices. * * CTX Feed inherits WooCommerce’s price format, which writes “5,488.99 GBP”. * Meta requires a plain number. There is no CTX Feed setting for this, so the *…Continue reading

PCBoost – Meta Pixel + WooCommerce events

/** * PCBoost – Meta Pixel + WooCommerce events * * Fires PageView, ViewContent, AddToCart and Purchase with content_ids that * match the Facebook catalogue feed exactly (WooCommerce product / variation ID). * Without matching IDs Meta cannot link ad…Continue reading

PCBoost — Google Ads conversion tracking

/* ============================================================ PCBoost — Google Ads conversion tracking v1.1 WPCode snippet — type: PHP Snippet, location: Run Everywhere 1. Attaches the Google Ads tag (AW-10848271722) to the gtag.js already loaded by the child theme. If that tag ever disappears again…Continue reading