If there is any question about it being a VS-marketed flight then just credit the miles to a CO account instead of UA. CO codeshares with VS, which UA doesn't. At the end of the year, UA and CO miles will be merged, or if you can't wait, you can link them and transfer the miles yourself.