Examine the main plugin file, likely src/index.js, to see how trackingId is currently set. Then add a similar option for userId. Review the comments in issue #2 for user expectations and any partial solutions.
How can I set userId ? · egoist/vue-ga#2 | Good First Issue