add analytics and bg