How to control an event firing in tags through custom code...
I have a situation with Tags / Launch using the WebSDK where I am making a direct call to a rule for various tl() events for AA.
I'm currently using a series of 3 actions within the rule (for editability more than anything):
- Set Variables (GUI for "default values")
- Set Custom Variables (custom code)
- Send Event
The direct call analyzes my data object which has a specific "event description" that is recognized in the custom code. Unfortunately sometimes my developers make up their own event description that doesn't have an equivalent. Currently this causes an event to still fire, but it's not constructed correctly.
I want to use custom code to check if a valid event description is passed and either stop the entire rule if the event is invalid, or, not allow the send event to happen unless it passes a check.
I believe the first step would be combining the last two events at a minimum, but I can't figure out what the custom code would be for the "send event" or if an "exit rule" exists.
The send is the AEP WebSDK send event with a variable data element and a type set to "Web Webinteraction Link Clicks".