Just based on the calculation you have performed, it is easy to see that it can equivalently be written as:
\begin{equation}
\dfrac{\partial g}{\partial u_k}(u) = 2 \langle Au, Ae_k\rangle,
\end{equation}
where $\langle \cdot , \cdot\rangle$ is the standard inner product of $\mathbb{R}^n$, and $e_k = (0, \dots, 1, \dots, 0)$, with $1$ in the $k^{th}$ place. So, $\nabla g(u)$ is the $1 \times n$ matrix whose $k^{th}$ entry is $2 \langle Au, Ae_k\rangle$.
Another way to arrive at this result is to systematically use the multidimensional chain rule, as explained in Loomis and Sternberg's book Advanced calculus, which is freely available on SHlomo Sternberg's website: http://www.math.harvard.edu/~shlomo/docs/Advanced_Calculus.pdf . In particular, chapter 3, Theorem 8.4, which is a "generalised product rule", valid in infinite dimensional Banach spaces as well. So, as an illustration, the function $g$ you have defined can also be written as
\begin{equation}
g(u) = \langle Au, Au\rangle.
\end{equation}
The key thing to notice is that the inner product function $\langle \cdot, \cdot\rangle : \mathbb{R^n} \times \mathbb{R^n} \to \mathbb{R}$ is bilinear (and automatically bounded since we are working on finite dimensional spaces); and bounded bilinear functions can be thought of as "multiplication". So differentiating $g$ is very easy; just apply the product rule as you know from single variable calculus (for the rigorous justification, refer to the book above). Hence, the derivative of $g$ at the point $u$, (which is a linear transformation from $\mathbb{R^n}$ into $\mathbb{R}$) applied to a vector $h \in \mathbb{R^n}$ is simply
\begin{align}
Dg(u) (h) &= \langle Ah, Au\rangle + \langle Au, Ah\rangle \\
&= 2 \langle Au, Ah \rangle .
\end{align}
Notice how in the first equal sign I just did the usual "differentiate the first term of product, multiply by second $+$ keep first term of product then multiply by second". In the second I used symmetry of inner product.
So now if you want the $k^{th}$ entry of the $1 \times n$ matrix $\nabla g(u)$, we simply substitute $h = e_k$ in the formula above, because
$\dfrac{\partial g}{\partial u_k}(u) = Dg(u) (e_k)$.
Remark: If this application of the chain rule and "generalized product rule" seems very abstract/foreign, then I'd agree with you because when I first learnt it, yes it was slightly confusing. But getting familiar with it is well worth it because it saves you the trouble of keeping track of matrix components, and big summations where indices can get mixed up easily; and with a bit of practice, it becomes just as easy to differentiate.