public static function CommerceGoogleTagManagerActionPurchase::getInfo in Commerce Google Tag Manager 7.2
Defines the action.
Return value
array
File
- includes/
rules/ CommerceGoogleTagManagerActionPurchase.php, line 14 - This file contains the "Send the Purchase event to GTM" action definition.
Class
- CommerceGoogleTagManagerActionPurchase
- @file This file contains the "Send the Purchase event to GTM" action definition.
Code
public static function getInfo() {
return self::getDefaultsInfo() + array(
'label' => t('Send "Purchase" event to google analytics via GTM'),
'parameter' => array(
'order' => array(
'type' => 'commerce_order',
'label' => t('Order in checkout'),
),
),
);
}