We have an input field and the validation that field is happening through API after arrow button click, in this case if i am using core click as event, rule is triggering before the API Results so data is in accurate, i want trigger the rule after validation of input field means after fetching API results in this case which event and condition need to use or is there any approach your thoughts and suggestions will be helpful
Your best option is to ask your developers to add a _satellite.track() line to their code when the validation has been received. This will trigger a Direct Call, which you can detect in Adobe Launch and do whatever tracking you want.
I assume that you know what a Direct Call event is and how to trigger it with _satellite.track().
In that case, your instruction to your developers would be:
When the API responds, run _satellite.track() (with your desired Direct Call identifier). Most API's include callback functions, so you can run _satellite.track() inside that callback function.
If you are ready to go with the datalayer development approach, i would suggest to implement a direct call rule. Direct call rules wait to exactly when to run – this can be done by the developer within the page code or by tapping into a framework or API being used by the site.
Use the following syntax to set direct call -
_satellite.track("direct call identifier") , here "direct call identifier" will be the identifier that will be used in rule. note that the string value is case sensitive
@Maheswar_Reddy the other method would be the core click event that you implemented, since the tracking is dependent on validation API so that would not give you accurate results.
Suggest to go with direct call approach as you can call the event whenever API fetches results.