Make Google Analytics event call reusable