function google_adwords_rules_action_info in Google AdWords Conversion Tracking 8
Same name and namespace in other branches
- 7.2 google_adwords.rules.inc \google_adwords_rules_action_info()
- 7 google_adwords.rules.inc \google_adwords_rules_action_info()
Implements hook_rules_action_info().
Use this rule to add google adword conversion tracking on non entity pages.
File
- ./
google_adwords.rules.inc, line 13 - Rules integration for google adwords conversion tracking.
Code
function google_adwords_rules_action_info() {
$actions = [];
$actions['google_adwords_add_tracking'] = [
'label' => t('Set Google Adwords conversion tracking code'),
'parameter' => [
'conversion_id' => [
'type' => 'integer',
'label' => t('Conversion ID'),
'optional' => FALSE,
],
'label' => [
'type' => 'text',
'label' => t('Label'),
'optional' => FALSE,
],
'value' => [
'type' => 'text',
'label' => t('Conversion Value'),
'optional' => TRUE,
'default value' => 0,
],
'language' => [
'type' => 'text',
'label' => t('Language'),
'optional' => TRUE,
'default value' => 'en',
],
'color' => [
'type' => 'text',
'label' => t('Color'),
'optional' => TRUE,
'default value' => 'FFFFFF',
],
'format' => [
'type' => 'text',
'label' => t('Format'),
'optional' => TRUE,
'default value' => '1',
],
],
'group' => t('Google Adwords'),
];
return $actions;
}