Group projects are more challenging in a fully online course because the online tools often must handle all collaboration. Students do not necessarily live in the same time zone or even on the same continent, there is no set class meeting time, and they may have vastly different schedules. Some online students do their classwork during the week, others work only on weekends. Some like the idea of meeting in-person with their group, others prefer asynchronous collaboration. A majority prefer not to do group work at all. Some students start and finish projects early (they always turn things in first) and others wait until the last minute. Invariably there will be complaints about group members who are not participating.
In real life many projects are team efforts. There is a great deal of learning value in discussion and collaboration. Tools which can faciliate group collaboration include asynchronous discussion tools for group communication, file sharing to share and revise documents, and chat tools for real-time discussion.
Smaller groups are more manageable. Teams of two are easier to coordinate than larger teams, although some courses do groups of 5 or 6. It is important to carefully assign the groups based on when they like to work and how they prefer to collaborate. Define clear roles, and include peer review of group participation as part of the grade. You can ask students to keep a log of their process and procedures. Provide a "panic button" for students whose team members have disappeared, so you can help them either decide to work alone or connect with another group.