Let $G$ be the Lie group of a given theory with the Lie algebra $\mathfrak{g}$.
According to the Wikipedia article, a Wilson line is of the form \begin{equation} W[x_i,x_f]= P e^{i \int_{x_i}^{x_f} A} \end{equation} where $A$ is the $\mathfrak{g}$-valued connection.
Then, I guess that this Wilson line $W$ must be $G$-valued, but the path-ordering operator $P$ in front of the exponential seems like an issue...
Could anyone please confirm or correct my understanding?