Skip to content

philipszdavido/google-analytics-with-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Google Analytics with Angular

This app demonstrates how to track and record pageview events in an Angular (SPA) application.

Technologies

  • Angular
  • Google Analytics

Setup and Usage

  1. Setup up a Google Analytics account.

  2. Clone this repo:

    git clone https://github.com/philipszdavido/google-analytics-with-angular.git
    
  3. Move into the google-analytics-with-angular directory from the terminal:

    cd google-analytics-with-angular
    
  4. Install the dependencies: npm install

  5. Open index.html in your editor, and change the UA-109919601-1 code to yours.

  6. Run the app:

    ng serve
    
  7. Navigate to localhost:4200 in your browser.

  8. Click on the links routeOne routeTwo and the button Click Me to see Google Analytics record the events.

How can I thank You

Why not star the github repo? The attention would be appreciated! How about sharing the link for this repo on Twitter?

Dont forget to follow me on Twitter!

Thanks! Chidume Nnamdi