How to Set Cookie via Script

Hello

I am using below script , unable to set cookie. Can you point mistake in below script ?

setCookie www1.XXX.com herokukey=’{EXPERIMENT:[1063]}’
navigate http://www1.XXX.com/shop/product/kitchenaid-ksm150ps-artisan-5-qt.-stand-mixer?ID=77589
setViewportSize 1280 1024

Try using this format:

setCookie http://www.ebay.com session=286755fad04869ca523320acce0dc6a4

Explicitly specify the protocol (http://) of the host. Also, the value of the cookie looks like JSON output or something, is that intentional? In any case, you can omit the quotes.