It is well known that the trace of a product of matrices is invariant under cyclic permutations. However, in general this is not true for arbitrary permutations. So, if $A,B,C$ are $n \times n$ matrices then $\mathrm{Tr}(ABC)$ is not necessarily equal to $\mathrm{Tr}(ACB)$.
However, if we assume $A,B,C$ to also be symmetric, then using the fact that the trace is invariant to taking transpose (as well as cyclic permutations) we obtain $$\mathrm{Tr}(A^TB^TC^T) = \mathrm{Tr}(A^T(CB)^T) = \mathrm{Tr}((CB)^TA^T) =\mathrm{Tr}((ACB)^T) = \mathrm{Tr}(ACB).$$ And, in fact, this allows us to show that the trace of a product of 3 matrices is preserved by taking any permutation of the product.
For products of more than 4 matrices, some permutations will not preserve the trace. Still, when all matrices involved in the product are symmetric there are more permutations preserving the trace, than just the cyclic permutations.
Is there a complete characterization for which permutations preserve the trace of a product of $n$ symmetric matrices?