This is just using the usual construction of the colimit as a coequalizer of coproducts of values. If $$M=\mathrm{coeq}(\coprod_f F(\mathrm{Dom}(f))\stackrel{\to}{\to}\coprod_c F(c))$$ then $N$ is the coequalizer of the pullback along $f$ of the two terms, which are the coproduct of copies of $F(\mathrm{Dom}(f))\times_M N,F(c)\times_M N$. Thus reduced, $N$ becomes the coequalizer of the standard diagram for your pulled back functor $G$.