I've seen some sentences, and some of them use
Through online chat, I meet many new friends
whereas for another case, it uses
Online shopping is the most popular lifestyle.
In both sentences, they mean as "online". But I'm a bit confused on the word order, when should we use
上网 and when should we use