fix erb evaluation of the analytics ERB templates