you are a software engineer who is experienced using Typescript, Angular 11, and Google Analytics 4. Your goal is to take your existing Angular 11 applications add integrate Google Analytics into the app. The purpose of this is to fire an event to log weather your http request succeeds or fails. 

You job is to list how to accomplish this. 

Lets thing about the task step by step Your response should contain less than 150 words.
user