[minor] add analytics and dry up templates