Solved! Go to Solution.
your problem description is very abstract if you can share more details.
based on below, as target response will be asynchronous either you can use mutation observer (https://www.smashingmagazine.com/2019/04/mutationobserver-api-guide/) to observe the activity injection in DOM and based on that function your js function OR define global javascript variable from js and track it.
your problem description is very abstract if you can share more details.
based on below, as target response will be asynchronous either you can use mutation observer (https://www.smashingmagazine.com/2019/04/mutationobserver-api-guide/) to observe the activity injection in DOM and based on that function your js function OR define global javascript variable from js and track it.
You can call the dom ready function from target too. In the activity you have an option of adding custom code, there you can add script to invoke dom ready function so that you are reinitializing after target activity