add analytics to test templates