You are here

function facebook_pixel_commerce_checkout_complete in Facebook Pixel 7

Implements hook_commerce_checkout_complete().

Tracks purchases or checkout flow completions (ex: Landing on "Thank You" or confirmation page).

File

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

Code

function facebook_pixel_commerce_checkout_complete($order) {
  facebook_pixel_add_event('Purchase:' . $order->order_id);
}