added method to controller for checking google analytics