added analytics call on return result

added analytics call on return result