This project implements pure Google Analytics into an Angular 2 project. In addition, there is an example for sending an event via Google Analytics.
npm install
- add your Google Analytics Property-ID to
src/index.html 19:19
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
This project was generated with Angular CLI version 1.0.0-beta.31.