DS-2088 Refactor Google Analytics recording code into dspace-api