in integration/FacebookWordpressWooCommerce.php [38:66]
public static function injectPixelCode() {
// Add the hooks only if the WooCommerce plugin is not active
if(!self::isFacebookForWooCommerceActive()) {
add_action('woocommerce_after_checkout_form',
array(__CLASS__, 'trackInitiateCheckout'),
40);
add_action( 'woocommerce_add_to_cart',
array(__CLASS__, 'trackAddToCartEvent'),
40, 4);
add_action( 'woocommerce_thankyou',
array(__CLASS__, 'trackPurchaseEvent'),
40);
add_action( 'woocommerce_payment_complete',
array(__CLASS__, 'trackPurchaseEvent'),
40);
add_action( 'woocommerce_after_single_product',
array(__CLASS__, 'trackViewContentEvent'),
40);
// This div will be used to insert the fbq calls
// when an event is triggered by an AJAX request
add_action( 'wp_footer',
array(__CLASS__, 'addDivForAjaxPixelEvent')
);
}
}