You are here

function facebook_pixel_commerce_checkout_router in Facebook Pixel 7

Implements hook_commerce_checkout_router().

Tracks when people enter the checkout flow (ex: click, landing page on checkout button).

File

./facebook_pixel.module, line 86
Drupal Module: Facebook Pixel.

Code

function facebook_pixel_commerce_checkout_router($order, $checkout_page) {
  if ($checkout_page['page_id'] == 'checkout') {
    facebook_pixel_add_event('InitiateCheckout:' . $order->order_id);
  }
}