I’m triggering on-demand execution for one of our browser click-path monitor. Use case is to pass another navigation URL and associated new cookie. The way to achieve this is by adding customized script with event and cookie.
I’m able to pass the navigate event but how do I pass cookie in request body. I tried to add cookie like below but that didn’t worked.
Basically, I’m looking to add cookies which we add under advanced setup. This can be seen under configuration section when we go script mode of synthetic monitor like below,
The script configuration section cannot be customized. The list of events that can be customized can be found here but you can customize a cookie step, so you could add a cookie event to the monitor and then modify that on the fly.
As we cannot pass the configuration section during on-demand execution, we can remove the cookies added from advance section of browser click-path and add ‘cookie’ event under recorded click-path and we are good to pass the values during on-demand execution. Below is the request body I used successfully.