Develop > Presentation layer > Customize marketing > Marketing customization: Management Center > Customizing triggers, targets, and actions
Changing the name of commands used in behavior rule matching
Certain triggers, targets and actions have behavior rules defined in their campaign element templates that detect events. The marketing services detect that the event has occurred by matching a page URL command or a controller command. If the site uses command names that are different from the default WebSphere Commerce command names, then specify your site's command names in a custom configuration file so that the triggers, targets and actions work properly.
Here are a couple of examples:
- For the Catalog Browsing Behavior target, the marketing services detect that a customer is viewing a category display page by matching this URL command: CategoryDisplay. If the site uses a different URL command, then this target will not work without the customization described in this topic.
- For the Customer Registers trigger, the marketing services detect that a customer has registered by matching this controller command: UserRegistrationAddCmd. If the site uses a different controller command, then this trigger will not work without the customization described in this topic.
Before you begin
To see a list of default command names used in the triggers, targets, and actions shipped with WebSphere Commerce, see List of shipped campaign element templates and task commands.
This task explains how to specify the site's custom URL command and controller command names so that they override the default WebSphere Commerce command names. As a result, any triggers, targets, or actions that match command names will use the names you specify.
Procedure
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- Open the default marketing component configuration file at the following path:
WC_EAR\xml\config\com.ibm.commerce.marketing\
- To understand how to override controller command names:
- In the file, search for this string:
The controller command names to match for behavior rules
- Review the instructions and the example controller commands listed in the file.
- To understand how to override URL command names:
- In the file, search for this string:
The url command names to match for behavior rules
- Review the instructions and the example URL commands listed in the file.
- In a customized marketing component configuration file (wc_admin_component.xml), add the required entries to specify the names of the custom commands.
For instructions, see Changing properties in the marketing component configuration file (wc-admin-component.xml).