This project makes use of Angulartics to track usage events and send them to Google Analytics.
Angulartics can be configured to work with a number of other services besides Google Analytics as well, e.g. Piwik, Google Tag Manager, or Azure Application Insights to name a few.
In order to start using one of these services, select it from the Angulartics Providers page, and follow the instructions on how to configure it.
The Google Analytics script was added in main.browser.ts
instead of the <head>
tag in index.html
to ensure events get sent when the page is shown in a client's browser, and not when it's rendered on the universal server. Likely you'll want to do the same when adding a new service.