add analytics sample