Let $C$ be the nodal curve obtained by gluing together the points $0$ and $1$ of $\mathbb{A}^1_{\mathbb{C}}$. The topological fundamental group of $C$ is isomorphic to $\mathbb{Z}$.
One can find an immersion of $C$ in a smooth connected variety such that the map between the fundamental groups is non-trivial.
For example, take $\mathbb{A}^1_{\mathbb{C}}\times \mathbb{Z}/n\mathbb{Z}$ and glue $(1,k)$ with $(0,k+1)$ cyclically for every $k$. This produces a curve $C_n$ with a natural $\mathbb{Z}/n\mathbb{Z}$-action. The quotient of $C_n$ by the action of $\mathbb{Z}/n\mathbb{Z}$-action is isomorphic to $C$. Take an immersion of $C_n$ in a smooth variety $X_n$ with a compatible free $\mathbb{Z}/n\mathbb{Z}$-action. The quotient of $C_n\hookrightarrow X_n$ by the action of $\mathbb{Z}/n\mathbb{Z}$ is an immersion $C\hookrightarrow X$, where $X$ is a smooth variety. The image of $\pi_1(C)$ in $\pi_1(X)$, by construction, has $\mathbb{Z}/n\mathbb{Z}$ as a quotient. In particular it is non-trivial.
Does there exist a smooth connected variety $X$ and an immersion $C\hookrightarrow X$ such that the induced map $\pi_1(C)\rightarrow \pi_1(X)$ is injective?