Manvi,
Am using this out of the box, no configuration changes, just adding a ScriptReference component to a new segment that I am creating within the We.Retail audiences, adding the ScriptReference component and then editing it and nothing shows in the dropdown. There are no errors in the browser console nor are there any errors in the logs that I can see.
Yes, as per the documentation I linked in my original question, it states if the properly configured the script will show in the Script Name dropdown. But, that's the issue, the script that comes out of the box does not even show in the dropdown. The documentation references that same out of the box script in terms of instructions, so if that is not working then either the instructions are wrong or incomplete.