function uc_googleanalytics_uc_order in Ubercart 7.3
Implements hook_uc_order().
File
- uc_googleanalytics/
uc_googleanalytics.module, line 53 - Adds Google Analytics Javascript to the checkout completion page.
Code
function uc_googleanalytics_uc_order($op, $order, $arg2) {
// If a new order is created during the checkout process...
if ($op == 'new') {
// Store the order ID for later use.
$_SESSION['ucga_order_id'] = $order->order_id;
}
}