function facebook_pixel_commerce_cart_product_add in Facebook Pixel 7
Implements hook_commerce_cart_product_add().
Tracks when items are added to a shopping cart (ex: click, landing page on Add to Cart button).
File
- ./
facebook_pixel.module, line 76 - Drupal Module: Facebook Pixel.
Code
function facebook_pixel_commerce_cart_product_add($order, $product, $quantity, $line_item) {
facebook_pixel_add_event('AddToCart:' . $order->order_id);
}