Let $G$ be an algebraic group over a number field $k$. One defines the Tate-Shafarevich set of $G$ to be $$Ш(k,G) = \ker\left(H^1(k,G) \to \prod_{v} H^1(k_v,G)\right),$$ where the product is over all places of $k$. Note that if $G$ is non-abelian, then this will only be a pointed set in general.
It is known that $Ш(k,G)$ is finite if $G$ is a linear algebraic group. It is conjectured that $Ш(k,G)$ is finite if $G$ is an abelian variety. This is known in some special cases, but is open in general.
Let now $G$ be an algebraic group over a finitely generated field extension $k$ of $\mathbb{Q}$.
Is there a natural analogue of $Ш(k,G)$ in this setting? Is it moreover known that $Ш(k,G)$ is finite when $G$ is linear algebraic?
Part of my motivation is the observation that results over number fields often generalise to finitely generated field extensions of $\mathbb{Q}$ (e.g. the Mordell-Weil theorem). So I would like to know if $Ш(k,G)$ makes sense in this more general setting.
I have a vague idea of how to proceed. Namely, to choose a model for $k$ (given as a proper flat scheme of finite type over $\mathbb{Z}$ with function field $k$, say), then take our notion of place to be a point of codimension one on this model. But I'm not really sure where to go from there, nor whether finiteness should hold when $G$ is linear algebraic.