Added apiVersion to analytics