Adding console.log in registerPageView