I have configured a dummy website as localhost using Adobe Launch. I am trying to get "s_vi" using "_satellite.cookie.get('s_vi'); " .An HTTP response from a web server sets cookies in a browser. This is how the s_vi cookie is set.
In my current localhost website unable to capture the s_vi cookie. Kindly suggest and let me know your comments on this.
If your website is new, you likely wouldn't have an s_vi cookie and therefore no legacy Analytics Visitor ID. If you are deploying a new web property we fully recommend deploying the Experience Cloud ID Service (formerly Visitor ID Service & Marketing Cloud ID Service).
According to the screenshot above, you likely already have deployed the ID service since you've an AMCV cookie present. Using the code provided in the previous answer will return your Analytics MID value that is used for visitor identification in Analytics for Experience Cloud ID Service users.