/create-react-app-with-ga

This project is google analytics sample with create-react-app.

Primary LanguageTypeScript

Google Analytics sample with Create React App

This project is google analytics sample with create-react-app.

Using

  • Create React App
  • TypeScript
  • ESlint
  • Prettier

Setup

Install dependencies

yarn

Add environment variable

Add REACT_APP_GA_MEASUREMENT_ID that is google analytics tracking id to .env.local.

example:

REACT_APP_GA_MEASUREMENT_ID=G-XXXXXXXXXX

How to use

Call yarn start, and then access to http://localhost:3000