Optimized GA snippet