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